You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

新手求助:Android Studio无法在Memu模拟器安装Flutter项目,报INSTALL_FAILED_VERIFICATION_FAILURE错误

Fixing 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 version command 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-tools folder (typically in C:\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__

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.29 19:33:13