Signed vs unsigned apk: classDeffNotFound

I have been developing for android for some time and have never encountered the following problem.

I have inherited the code base that I am trying to move from a hockey application to a Google game. When I distribute the apk obtained from the bin directory everything works fine. However, when I export a signed apk, the application crashes that this or that class is not found. The classes in question are classes that I create myself. And they are in the main package; therefore, I do not see dependency problems.

Has anyone come across this type of problem when the bin apk is working fine but not a signed apk? I do not use proguard. And I use exclipse to export this application; similar to how I always exported other applications.

  • The problem cannot be the key that is used for signing. As far as I know, if the key was damaged, it would not create apk at all.

The problem persists if I send apks mail or install them via USB.

+4
source share
1 answer

Try:

1) Delete the bin folder.

2) Rebuild the project. [Eclipse will be rebuilt if "Create automatically" is checked in the Project menu)

3) Now try to create a signed apk.

I ran into this problem from time to time. I was successful with the above steps. If the problem still persists, I will restart eclipse and repeat the same steps again.

0
source

Source: https://habr.com/ru/post/1491782/


All Articles