Search code examples
javaandroidkotlindebugging

Debug or release APK build - Package Appears to be Invalid


enter image description hereI was trying to create a Debug or release build for my Android Application in Android studio. The build was completed successfully but when I tried to install the apk file in my phone ,I was getting an error that "App Not Installed as package appears to be Invalid". I don't know why I'm getting this type of error. Anyone can fix this error.Help Me!! Thanks in advance

I tried so many methods such as removing cache. And referred some methods. I want a fix


Solution

  • I solved this error by changing the build variant to release and tried

    Build -> Build Apk

    or in terminal try,

    ./gradlew assembleRelease