I know a form of this question is out there, but I can\'t find anything specifically that fits my scenario, so here it is.
My app compiles and runs perfectly when te
After a lot of attempts I managed to find out the reason why this issue occurs. In general, this is caused by ProGuard and specifically its optimization. At least in my case I had 4 corrupt projects with this error, but after I disabled the ProGuard optimization, all of them were built correctly. So, in your ProGuard config comment the -optimizations and -optimizationpasses options and add -dontoptimize
# -optimizations ...
# -optimizationpasses 5
-dontoptimize
Hope this helps.