“解析包时出现问题”
我在安装 Android 应用程序时遇到问题。用户收到可怕的“解析包时出现问题”错误。不幸的是,它在我的手机上安装没有错误。此时,我正在处理两部运行 Android OS 2.2.1 的手机。我已经为 API 级别 7 构建了应用程序。为了省去读者查找此内容的麻烦,它支持 2.1 版本的设备。
我已经为此工作了一个月左右。当我想向用户展示最新版本时,我会通过电子邮件发送。最初,这对我们俩来说都效果很好。在此过程中,两台设备都设置为允许从“未知来源”安装。
开发手机始终有效。从上周构建开始,用户收到前面提到的错误。根据谷歌搜索,我知道这是一个常见错误不幸的是,大多数帖子都是用户在黑暗中掌握的,当然我已经阅读了该论坛上的另外六篇左右的帖子,这些帖子显然是来自专家开发人员。 /1492401/parse-error-there-is-a-problem-parsing-the-package-while-installing-android-a">这可以说是最好的。我的情况似乎有点不同,因为我已经确认它不是 API 级别。
如果我能拿到设备,我怀疑我应该会看到设备上的问题,但不幸的是,我没有该设备。我正在阅读 PackageInstallerActivity 的源代码。用户可以采取一些措施来收集更多信息吗?您有解决此问题的调试建议吗?
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".
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.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有许多应用程序允许用户向您发送正在发生的事情的日志输出 SendLog 是您可以在市场上找到的此类应用程序之一。至于为什么会出现这种情况,请问市场上也有这个应用程序吗?如果是这样,eclipse 构建的测试版本将使用测试签名进行签名,如果已经安装了市场版本,则不允许安装它们(反之亦然)。无论哪种方式,请务必让此人卸载您的应用程序的任何以前版本,然后尝试安装当前版本,这将排除不相等签名的问题。 (即使您的应用程序没有上市,您也应该尝试一下,调试签名的剩余时间比真实的要短得多,因此您的签名可能已过期,并且 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.)