问题
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.
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?
回答1:
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.
回答2:
In Android Version May 25th-2019 I faced similar issue :
Build -> Build Apk(s) and then locate apk from build -> output -> apk -> debug
Solve my issue.
回答3:
You could try avoiding put the names: com.example, com.android, etcc in your package, then Build>Rebuild and/or BuildGenerate signed APK and follow the steps. I hope help you!
来源:https://stackoverflow.com/questions/47338920/the-package-appears-to-be-corrupt-while-installing-apk-on-galaxy-s7