Android Studio Signed APK Not Installing

走远了吗. 提交于 2019-11-30 03:16:45

You need to be in release mode to generate a signed APK. On the lower left corner of your Android Studio should be a tiny square icon. Click on it and a menu shall pop up. Now choose Build Variants and you'll get a table with two columns: Module and Build Variant. There must be debug written below Build Variant. Click on it and you will get a dropdown. Now click on release and Gradle will start building the release version. Once it is completed generate the signed APK.

my 2 cents: with Android Studio 2.3 you can sign an app in two ways: v1 jar signature, v2 full apk signature. I was using the v2 option and this caused the signed app to not install on my android device. I then unchecked the v2 option, checked the v1 one and the apk now installs as expected.

Late to the game but here's something stupid that worked for me:
I had to uninstall the app for all users in Settings>Apps>MyApp

If you just uninstall it sometimes just removes it from your account and not the device, so you'd have a version or certificate mismatch when you tried to install the new APK.

Hope that helps someone

Yes. If you have two options before generation signed apk (V1 and V2) you should use V1 jar signature now, because there is no backward compatibility and all android phones with version < 7 won't accept this signature. Backward compatibility will be added in some next N Developer Preview. See: https://developer.android.com/about/versions/nougat/android-7.0.html#apk_signature_v2

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