“The package appears to be corrupt” while installi

2019-08-17 12:39发布

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?

3条回答
劳资没心,怎么记你
2楼-- · 2019-08-17 13:26

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!

查看更多
地球回转人心会变
3楼-- · 2019-08-17 13:30

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.

查看更多
在下西门庆
4楼-- · 2019-08-17 13:37

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.

查看更多
登录 后发表回答