Skip to content
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

Multi dex works fine but installation fails with dex-opt failure #1

Open
vikky49 opened this issue Aug 26, 2014 · 3 comments
Open

Multi dex works fine but installation fails with dex-opt failure #1

vikky49 opened this issue Aug 26, 2014 · 3 comments

Comments

@vikky49
Copy link

vikky49 commented Aug 26, 2014

This is really not an issue but i am curious..So trying to reach out to u ..The mult idexing works fine with android latest plugin but while trying to install it on a device it keeps failing ..
Any idea ?
target ➤ adb install multi-dex-sample.apk git:master*
5396 KB/s (629054 bytes in 0.113s)
pkg: /data/local/tmp/multi-dex-sample.apk
Failure [INSTALL_FAILED_DEXOPT]

@vikky49
Copy link
Author

vikky49 commented Aug 26, 2014

More logs

W/ActivityManager( 756): No content provider found for permission revoke: file:///data/local/tmp/multi-dex-sample.apk
I/PackageManager( 756): Copying native libraries to /data/app-lib/vmdl120835561
I/PackageManager( 756): Running dexopt on: pl.kalisz.kamil
E/dalvikvm(13793): ERROR: unrecognized magic number (50 4b 03 04)
E/dalvikvm(13793): ERROR: Byte swap + verify failed
E/dalvikvm(13793): Optimization failed
W/installd( 182): DexInv: --- END '/data/app/pl.kalisz.kamil-1.apk' --- status=0xff00, process failed
E/installd( 182): dexopt in='/data/app/pl.kalisz.kamil-1.apk' out='/data/dalvik-cache/data@app@[email protected]' res=65280
W/PackageManager( 756): Couldn't delete native library directory /data/app-lib/pl.kalisz.kamil
W/PackageManager( 756): Package couldn't be installed in /data/app/pl.kalisz.kamil-1.apk
D/dalvikvm( 756): GC_EXPLICIT freed 764K, 26% free 49135K/66208K, paused 3ms+6ms, total 101ms
D/AndroidRuntime(13773): Shutting down VM

@kkalisz
Copy link
Owner

kkalisz commented Aug 28, 2014

Hi, android maven plugin has bugged implementation of multi-dex, Check out my fork https://github.com/kkalisz/maven-android-plugin it has fixed multi-dex option, I also have version with proguard integration, but it need some refactor.

@vikky49
Copy link
Author

vikky49 commented Aug 28, 2014

@kkalisz thank you for the information. So how do i use it. .just locally clone it .build it and deploy it to my local repo to test it ? or is it publicly available ..

Thanks
Pratyush M

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants