"The package appears to be corrupt" while installing APK on Galaxy S7

Malwinder Singh picture Malwinder Singh · Nov 16, 2017 · Viewed 10.9k times · Source

I made an Android project on Android Studio. When I ran it on test Android device which was plugged to my system using a USB cable, it ran successfully.

However, then I generated the APK and uploaded in Diawi website. When I tried to install this APK, I got following error:

App not installed.

The package appears to be corrupt.

enter image description here

APK file however is not corrupt at all since when I installed it manually after copying it from build folder, it was successfully installed on the Galaxy S7.

How to fix this issue?

Answer

Mahdi-Malv picture Mahdi-Malv · Mar 1, 2019

In my case, I signed APK with V2 signature and it showed this error message. I tried signing the app only using V1 scheme and it worked.

As official docs say, if you have problem building APK using V2 scheme, you can skip and sign only using V1.