Phenomenon: APK installation of some mobile phones (system 5.0 11 model, system version is uncertain) fails, and the operation code is as follows:
The installation did not succeed.
The application could not be installed: INSTALL_FAILED_DEXOPT (DEX optimization verification failed)
List of apks:
 ‘ D:\workspace\WalletHelper\app\build\outputs\apk\debug\app-debug.apk’
The device might have stale dexed jars that don’t match the current version (dexopt error).
Let’s start with the solution:
< in androidmanifest.xml; application> Set the Android: vmsafemode property of to true
Since minsdkversion 21 is set, Android 5.0 (API level 21) and later versions use the runtime named art, which itself supports loading multiple DEX files from APK files. Art performs precompiling during application installation, which scans for
classesN.dex Files and compile them into a single file
.oat File for Android devices to execute. So if your
minSdkVersion For version 21 or later, multidex is enabled by default, and you do not need the multidex library.
- [Solved] hardhat Failed to Verificate Error: Failed to send contract verification request
- [Solved] Error: Cannot fit requested classes in a single dex file (# methods: 149346 ＞ 65536)
- postman CSRF verification failed [How to Solve]
- Error: Host Key Verification Failed [How to Solve]
- [Solved] SSH + GIT Operate Error: Host key verification failed
- [Solved] Installation failed due to: ‘INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: Package com.
- [Solved] Android Studio APK install Error: INSTALL_FAILED_CONFLICTING_PROVIDER
- [Solved] Android-android studio apk Install Error: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] svn Error: E230001: Server SSL certificate verification failed: certificate issued
- [Solved] Pip install icu failed: Command “python setup.py egg_info” failed with error code 1 in
- [Solved] Vcpkg Install Building package brotli:x64-windows failed with: BUILD_FAILED Locking applocal.ps1
- Mac IDEA Connect SVN Error: E230001: Server SSL certificate verification failed: certificate issued
- SVN Error:svn: E230001: Server SSL certificate verification failed: certificate issued
- The application could not be installed: INSTALL_FAILED_USER_RESTRICTED
- Apk Failed to install Error: [install\u failed\verification\u failure]
- [Solved] Phone Debug Program Error: The application could not be installed: INSTALL_FAILED_TEST_ONLY
- [Solved] Android Studio 4 Error: The application could not be installed: INSTALL_FAILED_OLDER_SDK
- [Solved] Android12 Download Error: The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
- [Solved] The application could not be installed: INSTALL_FAILED_NO_MATCHING_ABIS
- [Solved] Failed to install the following Android SDK packages as some licences have not been accepted