Reputation: 363945
When I try to debug my app I am getting this error: Failure [INSTALL_FAILED_DEXOPT]
I am using Android Studio 0.8.1. This is the log when I am trying to install and debug the app.
Installing <mypackage>
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/<mypackage>"
pkg: /data/local/tmp/<mypackage>
Failure [INSTALL_FAILED_DEXOPT]
Now it happens with all apps in my IDE, with all my real and virtual devices.
Logcat:
07-09 01:34:53.895 585-609/? I/PackageManager﹕ Running dexopt on: mypackage
07-09 01:34:53.915 17728-17728/? W/dalvikvm﹕ DexOptZ: zip archive '/data/app/mypackage-1.apk' does not include classes.dex
07-09 01:34:53.915 177-177/? W/installd﹕ DexInv: --- END '/data/app/mypackage-1.apk' --- status=0xff00, process failed
07-09 01:34:53.915 177-177/? E/installd﹕ dexopt in='/data/app/mypackage.apk' out='/data/dalvik-cache/data@[email protected]@classes.dex' res=65280
07-09 01:34:53.915 585-609/? W/PackageManager﹕ Couldn't delete native library directory /data/app-lib/mypackage
Upvotes: 5
Views: 6015
Reputation: 363945
Solved invalidating the cache and deleting the .AndroidStudioBeta
folder
To invalidate the cache use in Android Studio: File -> Invalidate Caches and restart
Upvotes: 1
Reputation: 1853
In my case this error appeared when i enabled again Instant Run. By disabling it dissapeared.
Upvotes: 1
Reputation: 77
I faced the same problem. I have done the following steps to fix it
Upvotes: 0