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