Recently, when I deploy my simple Android application to emulator in Android Studio, it always fails with error: Failure [INSTALL_FAILED_DEXOPT]
Check the logcat log: it shows: "The apk does not include classes.dex".
The Workaround: Build the app manually in command line: *gradlew.bat clean assembleDebug*
Please read full article from Android Studio: No classes.dex in built apk
Check the logcat log: it shows: "The apk does not include classes.dex".
The Workaround: Build the app manually in command line: *gradlew.bat clean assembleDebug*
Please read full article from Android Studio: No classes.dex in built apk
No comments:
Post a Comment