Failure [install_failed_dexopt]

Source: Internet
Author: User

After the APK is compiled in the android4.0 source code and installed with ADB install, the error [install_failed_dexopt] is returned.

Z: \ ICS-android \ ICS-Src \ out \ target \ product \ Generic \ System \ app> ADB install nativetimer.apk

28 kb/s (10166 bytes in 0.344 S)
PKG:/data/local/tmp/nativetimer.apk

Failure [install_failed_dexopt]


The original apk in system \ app is optimized, and the DEX file is not packaged into the APK, And the DEX file is optimized to generate the odex file.

Z: \ ICS-android \ ICS-Src \ out \ target \ product \ Generic \ System \ app \ nativetimer.apk

Z: \ ICS-android \ ICS-Src \ out \ target \ product \ Generic \ System \ app \ nativetimer. odex

In this way, the DEX file is missing during APK installation, resulting in the error [install_failed_dexopt].


Solution:

Find the unoptimized APK, that is

Z: \ ICS-android \ ICS-Src \ out \ target \ product \ Generic \ OBJ \ apps \ nativetimer_intermediates> ADB install
Package.apk. unaligned
70 kb/s (138806 bytes in 1.912 S)
PKG:/data/local/tmp/package.apk. unaligned
Success

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.