5

I make an apk with odex on Android 4.0. And try to install it to emulator.

adb shell install test.apk

Get error message is Failure Failure [INSTALL_FAILED_DEXOPT]. Also try to push apk and odex file to /system/app, it not works. How to install this apk?

Queenie Wong
  • 123
  • 1
  • 4
  • 11

2 Answers2

0
adb install -r test.apk

-r is for reinstallation.

Update:

If you are now facing [INSTALL_FAILED_DEXOPT] error then you need to uninstall old version of application. There may be a chance that two applications are having same package name, so uninstall the application who is having the same package as your application has.

Paresh Mayani
  • 127,700
  • 71
  • 241
  • 295
0

It seems like the apk is already installed you have to uninstall the apk using the package name

adb uninstall com.sunil// com.sunil is the package name of application

To resolve the ODEX issue please wipe your data, start the emulator once again from the Android SDK and AVD Manager by selecting the option Wipe User Data. Click here

Community
  • 1
  • 1
Sunil Kumar Sahoo
  • 53,011
  • 55
  • 178
  • 243