How to fix INSTALL_FAILED_INVALID_APK error in Android Studio?

前端 未结 9 1643
一整个雨季
一整个雨季 2021-02-08 23:37

I have recently updated my Android Studio to 3.6.1, thereby also updating gradle plugin to 3.6.1 and the gradle wrapper to 5.6.4

When running the debug build, I keep get

相关标签:
9条回答
  • 2021-02-09 00:27

    The problem started happening for me in Android Studio 4.0. I get "INSTALL_FAILED_INVALID_APK" when trying to launch an app on Emulator right after opening Android Studio.

    Found a workaround - if I launch the app on real device first, then launching on emulator is not a problem. Works 100%.

    Android Studio is still buggy as hell, unfortunately...

    0 讨论(0)
  • 2021-02-09 00:30

    When you are set up the emulator (AVD) you are choosing the External & Internal storage sizes.

    AND I think you exceeded that storage size.

    Solutions (They are all under freeing some storage "category"):-

    • Uninstall unnecessary apps.
    • Wipe emulator data from AVD manager.
    • Extend the storage size by editing the specific emulator.
    0 讨论(0)
  • 2021-02-09 00:34

    One other solution would be just remove the ../android/app/build/outputs/apk/debug/app-debug.apk file and then run "npm run android" / "yarn android"

    0 讨论(0)
提交回复
热议问题