[英]signed vs unsigned apk: classDeffNotFound
I have been developing for android for a while, and have never encountered the following problem. 我已经开发了一段时间的android,并且从未遇到过以下问题。
I inherited a codebase that I am trying to move from hockey app to google play. 我继承了一个代码库,我试图从曲棍球应用程序转移到谷歌播放。 When I distribute the apk obtained from the bin directory, everything works fine.
当我分发从bin目录获取的apk时,一切正常。 However, when I export a signed apk, the app crashes claiming that one or another class is not found.
但是,当我导出已签名的apk时,应用程序崩溃声称找不到一个或另一个类。 The classes in question are classes that I create myself.
有问题的课程是我自己创建的课程。 And they are in the main package;
它们属于主要包装; so no dependency issues that I can see.
所以没有我能看到的依赖性问题。
Has anyone encountered this type of problem where bin apk works fine but not the signed apk? 有没有人遇到这种类型的问题,其中bin apk工作正常,但没有签名的apk? I am not using proguard.
我没有使用proguard。 And I am using exclipse to export this app;
我正在使用exclipse导出这个应用程序; similar to how I have always exported other apps.
类似于我总是导出其他应用程序。
The problem persists whether I email the apks or install them with USB. 无论是通过电子邮件发送apks还是使用USB安装它们,问题仍然存在。
Try: 尝试:
1) Remove bin folder. 1)删除bin文件夹。
2) Rebuild project.[Eclipse will rebuild if 'Build automatically' is checked under 'Project' menu tab] 2)重建项目。[如果在“项目”菜单选项卡下选中“自动构建”,Eclipse将重建]
3) Now try creating signed apk. 3)现在尝试创建签名的apk。
I am facing this problem once in a while. 我偶尔会遇到这个问题。 I have been successful with above steps.
我已经成功完成了上述步骤。 If still problem persists, I will restart eclipse then follow same steps again.
如果问题仍然存在,我将重新启动eclipse,然后再次执行相同的步骤。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.