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] Error: Cannot fit requested classes in a single dex file (# methods: 149346 ＞ 65536)
- Ionic3 update open apk android 8.0 error FileUriExposedException
- Error lnk2038: detected “_ ITERATOR_ DEBUG_ Mismatched ‘level’ value of ‘0’
- Android r compiles OTA times error: ExternalError: Invalid ro.product.property_source_order
- Android studio version 3.0 import version 2.2.2 error Error:This Gradle plugin requires Studio 3.0 minimum
- [Solved] Unity Package Error: FAILURE: Build failed with an exception.
- Error: a JNI error has occurred, please check your installation and try again
- Android Working Directory：NULL Environment：NULL Error
- [Android] method of removing title bar and using request window feature (Window.FEATURE_ NO_ Title); why does it fail
- [Solved] OpenCV ERROR: The minSdk version should not be declared in the android manifest file
- Android: How to Solve libuv Compile Error
- [Solved] Excel plug in installation failed: unable to resolve the value of property ‘type’
- Remember an android app startup error Error running: Default Activity not found
- Hive Statement Error During Execution: Error while processing statement: FAILED: Execution Error, return code 2 from o
- [Solved] Manifest merger failed: Apps targeting Android 12 and higher are required to specify an explicit
- [Solved] ViewBinding Error: java.lang.ClassCastException: android.widget.RelativeLayout cannot be
- Resolve Chromedriver’s original error: chrome not reachable
- Eclipse Graphical Layout Error: Failed to find the style corresponding to the id 2130772027
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“