I tried to literally try everything and fix this error when I tried to deploy the application on a real Android device for debugging, but could not solve the problem. Every time I try to start, I get an unsuccessful error [INSTALL_FAILED_DEXOPT], and when checking logcat this is always because there is no class.dex in my debug apk.
If I run gradlew.bat clean assembleDebug there is no difference in apk size, so I assume there is a build error in android studio. I am using the android studio beta version 0.86 and tried it at 0.89 with the same result. I tried to build tools for 19.1 to 21 with no results. I also tried different devices and created a new project (which was never installed on my devices), and it seems like android studio thinks that it needs to be removed when trying to deploy.
I tried switching my device to ART, uninstalling and reinstalling Android studio, rebooting sdk and rebooting the computer. NOTHING, and I mean, NOTHING worked. I think the problem started after I downloaded lollipop apis, but not sure. I tried to remove all applications with my package signature on my device, but NOTHING works! Even Project β Clean Project β Reconstruction
This is very unpleasant, because I can no longer debug my applications: / does anyone have any problems with this error or ways to fix it?
android debugging android-studio apk dex
Developer paul
source share