Home > OS >  Android INSTALL_FAILED_INVALID_APK base.apk is missing after updating to gradle plugin 7.2.1
Android INSTALL_FAILED_INVALID_APK base.apk is missing after updating to gradle plugin 7.2.1

Time:06-02

After updating gradle plugin from 7.1.3 to 7.2.1, when attempting to build and install our app in AndroidStudio I get the error INSTALL_FAILED_INVALID_APK ... base.apk is missing.

I noticed, that the built apk file is very small (~6 MB instead of ~20 MB).

When switching back to gradle plugin 7.1.3, everything is fine.

I am using Android Studio Chipmunk 2021.2.1 Patch 1.

CodePudding user response:

Try to remove the old debug app and try again after a clean build

  • rm -rf android/app/build/outputs/apk/debug/
  • Invalidate cache and restart
  • flutter clean
  • flutter pub get
  • flutter run

CodePudding user response:

You can try any one of these

  1. HMS toolkit Uninstall it if its installed
  2. Invalidate Cache and Restart
  3. Delete all build folders and try again.
  4. Build > Clean Project

Let me know if you have solved it.

CodePudding user response:

a little late.

There can be multiple possibilities for the issue.

I also faced this issue back in the day.

Fix 1 -> your package name must have '.' eg: com.example.app

Fix 2-> Just remove old APK android/app/build/outputs/apk/debug/app-debug.apk in the folder

Please do give these a try. I hope your issue gets resolved.

  • Related