发布 Android 应用程序时出现问题:“此应用程序可用于 0 多个设备”
您好:我注意到这个问题已在 https://stackoverflow.com/q/8212956/936042 得到解答,但我希望你们都会接受我的问题,因为我无法重现该解决方案。
当我将 APK 上传到 Android 市场时,消息显示“可用于超过 578 台设备”(这是激活之前的情况)。一旦我开始进行其他更改(例如更改联系电子邮件地址),消息就会更改为“此应用程序可用于 0 多个设备”。我使用 Eclipse 的 Export 选项创建最终的签名 APK。
我的 Android 应用程序使用 3 个外部 JAR (http://code.google.com/ p/javamail-android/downloads/list)。我使用 Project/Properties/Java Build Path/Libraries/Add external JAR 将它们添加到项目中。
上面链接中发布的解决方案涉及外部 JAR 的使用,以及它们以某种不适当的方式嵌入到 APK 中,这是导致此问题的原因:
我的错误是我包含了 .jar 文件以便添加一些外部库而不是相应的外部类文件夹。当我删除 .jar 文件并添加类文件夹后,设备数量再次超过 700 个。
我不太明白上面的解释。如果有人(尤其是原作者)可以更详细地阐述它,我将非常感激。
谢谢!
PVS
Hello: I note this question has been answered at https://stackoverflow.com/q/8212956/936042 but I hope y'all will entertain my question since I am not able to reproduce the solution.
When I upload my APK to the Android market, the message says "available to over 578 devices" (this is before activation). As soon as I begin to make other changes (such as changing the contact email address) the message changes to "This application is available to over 0 devices". I use Eclipse's Export option to created the final, signed APK.
My Android app uses 3 external JARs (http://code.google.com/p/javamail-android/downloads/list). I add them to the project using Project/Properties/Java Build Path/Libraries/Add External JARs.
The solution posted at the link above implicates the use of external JARS, and their being embedded into the APK in some inappropriate manner, as the cause for this issue:
my mistake was that I included .jar files in order to add some external libraries and not the respective external class folders. When I removed the .jar files and I just added the class folder then devices became over 700 again.
I don't quite follow the above explanation. If someone (especially the original author) could lay it out in greater detail, I'll be very obliged.
Thanks!
PVS
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我偶然发现的众多“解决方案”之一是更新 Eclipse 以及 Android SDK。我没有更改项目中的任何内容 - 针对相同的 API 级别等。所有内容更新后,我的 APK 加载正常,并显示对 600 多种设备的支持。
希望这对某人有帮助。
PVS
One of the many "solutions" I stumbled onto was to update Eclipse as well as the Android SDK. I didn't change anything in my project - targeting the same API level etc. After everything got updated, my APK is getting loaded fine, and showing support for over 600 devices.
Hope this helps someone.
PVS