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

自闭症网瘾萝莉.ら 提交于 2019-12-24 19:27:54

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!