运行应用程序和导出未签名的应用程序(关于构建的 .apk
)文件有什么区别?
由于我的应用无法导出,Conversion to Dalvik format failed with error 1,但是当通过Run as Android App 运行它时,它会运行并安装在设备上。
我搜索了所有问题并尝试了所有答案,但没有任何效果,我什至不知道如何调试它,没有错误,日志中也没有问题。
仅供引用,我的应用使用:
- ActionBarSherlock(作者 JakeWarton)
- ViewPagerIndicator(由 JakeWarton 设计)
- 下拉刷新
- GoogleAdMob
- 谷歌分析
最佳答案
在这两种情况下,您都将私钥应用于应用程序,只是在其中一种情况下,它是 debug key (它是自动生成的,至少在 Eclipse 环境中是这样),在其他情况下,它可以用于发布它,例如,在 Google Play 上。
(来自链接):
The important points to understand about signing Android applications are:
All applications must be signed. The system will not install an application on an emulator or a device if it is not signed. To test and debug your application, the build tools sign your application with a special debug key that is created by the Android SDK build tools.
我确实遇到过你的问题,但就我而言,我通过在 Eclipse 中清理我的应用程序(和相关库)并重复导出过程来解决它。
关于android - 运行应用程序和导出未签名的应用程序有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15284847/