“解析程序包时出现问题" [英] “There is a problem parsing the package”

查看:592
本文介绍了“解析程序包时出现问题"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装Android应用程序时遇到问题.用户收到可怕的解析软件包时出现问题"错误.不幸的是,它在我的手机上安装没有错误.目前,我正在处理两部都运行Android OS 2.2.1的手机.我已经为API级别7构建了该应用程序.为了避免阅读时麻烦,它支持2.1版本的设备.

I have encounter a problem installing my Android app. The user gets the dreaded "There is a problem parsing the package" error. Unfortunately, it installs without error on my phone. At this point, I am dealing with two phones both of which are running Android OS 2.2.1. I have built the application for API Level 7. To save the read the trouble of looking this up, it supports devices from 2.1.

我已经为此工作了一个月左右.当我想向用户显示最新版本时,我通过电子邮件发送它.最初,这对我们俩都很好.在此过程中,两个设备均已设置为允许从未知来源"进行安装.

I have been working with this for a month or so. When I want to show the user the latest build, I send it via email. Initially, this worked fine for both of us. During this process both devices where setup to allow installation from "Unknown Sources".

开发电话一直有效.从上周的构建开始,用户将收到前面提到的错误.我知道这是基于Google搜索的常见错误.不幸的是,大多数帖子来自用户在黑暗中的掌握.自然,我已经阅读了该论坛上的其他一半左右的帖子,这些帖子显然来自专家开发人员. 是可以说是最好的.我的情况似乎有些不同,因为我已经确认它不是API级别.

The development phone has always worked. Starting with last weeks build, the user is receiving the error mentioned earlier. I know this is a common error based on a google search. Unfortunately, most of the posts are from user’s grasping in the dark. Naturally I have read the other half dozen or so post on this forum which are clearly from expert developers. This is arguably the best. My situation appears a bit different because I have confirmed it isn't the API Level.

我认为此错误不是很有帮助.如果可以使用该设备,我怀疑应该看到设备上调试的问题.不幸的是,我没有设备.因此,我正在阅读PackageInstallerActivity的源代码.希望有一种更快的支付脏污的方法.用户可以做些事情来收集更多信息吗?您是否有调试建议来解决此问题?

I do not find this error very informative. If I can get my hands on the device, I suspect I should see the problem with on-device debugging. Unfortunately, I do not have the device. So I am reading the source for PackageInstallerActivity. A quicker way to pay dirty is desirable. Is there some thing the user can do to glean more information? Do you have debugging suggestions to resolve this problem?

推荐答案

有许多应用程序,这些应用程序将允许用户向您发送SendLog正在进行的日志输出,您可以在市场上找到此类应用程序之一. .至于为什么会发生这种情况,您是否也在市场上有此应用程序?如果是这样,则将使用测试签名对Eclipse构建的测试版本进行签名,如果已经安装了市场版本,则将不允许安装它们(反之亦然).无论哪种方式,请确保此人确保卸载应用程序的任何先前版本,然后尝试安装当前版本,这将排除出现不相等签名的问题. (即使您没有在市场上出售您的应用程序,也应尝试这样做,调试签名的剩余时间比实际签名的时间短得多,因此您的过期签名和日蚀可能会在您不知情的情况下使您成为新的签名,这将使该签名无效要安装的应用程序与已经安装的任何以前的版本.)

There are many apps that will allow the user to send you the Log output of what is going on SendLog is one of such apps you can find it on the Market. As for why it is happening, do you have this app on the market also? If so the test versions that eclipse builds are going to be signed with a test signature which will not allow them to be installed if the market version is already installed (or vice versa). Either way have this person be sure to uninstall any previous versions of your application and then try to install the current one, this will rule out non-equal signatures as the problem. (you should try this even if you don't have your app on the market, debug signatures have a much shorter left time than real ones so its possible that yours expired and eclipse made you a new one without you knowing, this would then disallow the app to be installed with any previous versions already installed.)

这篇关于“解析程序包时出现问题"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆