I have been developing for android for a while, and have never encountered the following problem.
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. However, when I export a signed apk, the app crashes claiming that one or another class is not found. 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? I am not using proguard. And I am using exclipse to export this app; similar to how I have always exported other apps.
The problem persists whether I email the apks or install them with USB.
Try:
1) Remove bin folder.
2) Rebuild project.[Eclipse will rebuild if 'Build automatically' is checked under 'Project' menu tab]
3) Now try creating signed 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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.