-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failure [INSTALL_FAILED_DEXOPT] with OkHttp in Libs directory #1097
Comments
I haven't seen this. Do you get any other logs? Perhaps from the device's logcat? |
No, it doesn't even get to the point where something is written to the logcat. |
i have the same issue. My install log: 10-28 14:14:10.784: E/PackageManager(170): Package xxxxxxxxxxxxx has mismatched uid: 10094 on disk, 10106 in settings 10-28 14:14:12.185: E/dalvikvm(1927): LinearAlloc exceeded capacity (5242880), last=1092 10-28 14:14:15.849: W/installd(116): DexInv: --- END '/data/app/xxxxxxxxxxxxx-1.apk' --- status=0x000b, process failed |
The error subtle, but it's here:
It usually has to do with very complex object hierarchies (large libraries like Guava, language runtimes like Scala, etc.). The original issue posted on Android can be read here. Unfortunately there's nothing for us to do. It's not OkHttp that caused this directly, but the combination of all your code and the libraries in use in your app. |
When I place jar files of OkHttp and Okio versions 2.0.1 and 1.0.1 respectively to the libs directory of my project I get the following message when I try to install a small app to either simulator 2.3.3 or a device 2.3.3:
Uploading file
local path: app/build/outputs/apk/app-debug.apk
remote path: /data/local/tmp/com.identifier.app
Installing com.identifier.app
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.identifier.app"
pkg: /data/local/tmp/com.identifier.app
Failure [INSTALL_FAILED_DEXOPT]
It works with simulator 4.2.2 and device 4.2.2. Has anyone had similar experience?
Thanks,
Dan
The text was updated successfully, but these errors were encountered: