Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Signed APK Not Installing

Tags:

I am in Android Studio and signing an APK under Build > Generate Signed APK and using the wizard. Everything appears to sign fine and an .apk file is generated.

When I go copy this file over to my device (either Nexus 7 or Moto X) it won't install. I get an "install failed" message.

I can't figure out what's going wrong at all. I have put this .apk up in the google play developer console under "alpha testing" and it was accepted fine (I'm waiting for the tester link to become active to try and download / install from there).

The instructions for the wizard here (http://developer.android.com/tools/publishing/app-signing.html#studio) show in the screenshot of the final stage a drop down called "Build Type" selected to "release". I don't have that in my version of Android Studio. There isn't anything I can find in this wizard that will let me specify a "release" build.

Any help anyone can give me would be so much appreciated. Thanks!

like image 439
James Miller Avatar asked Jun 02 '15 01:06

James Miller


People also ask

Why won't my APK app install?

Another common reason for the App not installed error could be that there is not enough free memory on your device's internal storage. Most users think that the size of the apk file is the actual size of the app. But this is not the case. Actually the apk file is a packaged version of the application itself.


2 Answers

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.

like image 118
Bidhan Avatar answered Oct 13 '22 09:10

Bidhan


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.

like image 40
edestrero Avatar answered Oct 13 '22 09:10

edestrero