Two possible compilation results for a SAME project, demanding LOTS of compilations until get a functional APK

Have you ever experience this?

One same project with two possible compilation results: one runs, the other crashes with a generic and useless popup window reporting the app caused too many errors.

I’ve saved both apk files and I’ve taken a look inside apk cabinet:

The left one is the apk that works. Notice original size difference of class.dex and class2.dex between results. There are other files with different sizes.

Both results happen randomly. In certain period, only defective apk is generated; in others, functional apk is delivered.

I’ve been spending tens of work hours to find the supposed error in the project (that reports zero warning and zero error) till I finally realised that compilation is indeed where the random error is.

Any clue?

2 posts were merged into an existing topic: Build server not building the entire apk