I have Android application which was working fine but few hours ago it started showing me error on Run 'app' click
in Android Studio:
Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
> org.objectweb.asm.tree.analysis.AnalyzerException: Execution can fall off end of the code
If I build app from console like gradle assembleRelease
everything works fine.
So my question is how to fix this, what could cause this problem. It drives me crazy, because I can't start my app only from Android Studio.
Btw: I already tried to google it and a lot of answers about multidex problem but I guess it's not an option in my case.
Try deleting the contents of your build directory, and then rebuilding.
appName/build
and/or appName/app/build
A less brute force option to try is to clean the build.
Build -> Clean Project
or Build -> Rebuild Project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With