新手求助:Android Studio无法在Memu模拟器安装Flutter项目,报INSTALL_FAILED_VERIFICATION_FAILURE错误
INSTALL_FAILED_VERIFICATION_FAILURE when running Flutter app on MEmu Hey there! Let's work through this error you're facing when trying to run your Flutter app on the MEmu emulator. That INSTALL_FAILED_VERIFICATION_FAILURE usually pops up when the emulator's app verification blocks the installation, or there's a mismatch/cache issue with ADB. Here are some actionable steps to fix it:
1. Disable ADB installation verification on MEmu
This is the most common fix for this error. You can do it either through the emulator's settings or via an ADB command:
- Via MEmu Settings: Open MEmu, go to Settings > Security, then look for and disable options like "Verify apps during installation" or "Unknown sources verification" (the exact name might vary slightly depending on your MEmu version).
- Via ADB Command: Open your terminal/CMD, run this command after connecting to MEmu:
adb shell settings put global verifier_verify_adb_installs 0
2. Clear Flutter and Gradle caches
Corrupted cache files can sometimes cause installation glitches. Run these commands in your project's root directory:
- First, clean Flutter's cache:
flutter clean - Then navigate to the Android folder and clean Gradle's cache (Windows users skip the
./):cd android ./gradlew clean - Go back to the project root and fetch dependencies again:
cd .. flutter pub get
3. Ensure ADB version compatibility between Android Studio and MEmu
Mismatched ADB versions often lead to weird installation errors. Here's how to check and fix it:
- Open CMD, navigate to your MEmu installation directory (usually something like
C:\Program Files\Microvirt\MEmu), then run:adb version - In Android Studio's terminal, run the same
adb versioncommand to check its version. - If the versions don't match, copy the ADB files (adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll) from Android Studio's
platform-toolsfolder (typically inC:\Users\<YourUsername>\AppData\Local\Android\Sdk\platform-tools) and replace the ones in MEmu's directory. Then restart both ADB and MEmu.
4. Reconnect MEmu and restart ADB services
Sometimes a fresh connection fixes the issue:
- Disconnect from MEmu first:
adb disconnect localhost:21503 - Kill and restart the ADB server:
adb kill-server adb start-server - Restart your MEmu emulator, then reconnect:
adb connect localhost:21503 - Try running your app again with
flutter run.
5. Verify debug signing configuration (last resort)
While Flutter handles debug signing automatically, double-checking won't hurt. Open android/app/build.gradle and make sure the debug build type uses the default debug signing config:
buildTypes { debug { signingConfig signingConfigs.debug } }
After trying these steps, your app should install and run on MEmu without that verification error.
内容的提问来源于stack exchange,提问作者samirhossein__

