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?