Android Signed APK showing as Unsigned APK when trying to upload to production

AndroidAndroid Studio

Android Problem Overview


I signed my APK in Android Studio 2.3 (build->generate signed APK). When I'm trying to upload it to Google Play store it is showing the error that I've uploaded unsigned APK. Could anyone answer why it is happening and how to solve it?

Android Solutions


Solution 1 - Android

It uploaded successfully when I checked V1 (Jar Signature) instead of V2 (Full APK Signature) while generating the signed APK in Android Studio 2.3

Solution 2 - Android

Android 7.0 introduces APK Signature Scheme v2, a new app-signing scheme that offers faster app install times and more protection against unauthorized alterations to APK files.

While generating signed apk there are two checkbox .

  1. V1 (Jar Signature)
  2. V2 (Full apk Signature)

There are three choices available to us:

  1. select V1 (For older version of signing) - apk gets uploaded successfully

  2. select V2 (For newer version of signing) - Please note that selecting this alone will not work.

  3. select V1 and V2 (For older and newer version) - apk gets uploaded successfully

Why selecting V2 alone does not work ?

Because APK Signature Scheme v2 was introduced in Android 7.0 (Nougat). To make a APK installable on Android 6.0 (Marshmallow) and older devices, the APK should be signed using JAR signing before being signed with the v2 scheme.

For more information jump here

Solution 3 - Android

Signed for Both v1 and v2. It will upload Successfully.

Solution 4 - Android

This is because you are using only v2 signature while taking release build.

So what is v1 and v2 mentioned?

v1 is the default signing mechanism and v2 is the newest mechanism added, which verifies much faster. This means v2-signed APKs install/update a bit faster on Android Nougat (Android 7.0, API Level 24) and newer.

So what should you do?

>If you want to sign app without any changes

Check v1 (jar Signature only) which is the default.

>If you want the newest signature and support for 7.x versions

Check v2 (Full Apk Signature) Which also reduces app size.

>If you want app to be smaller, able to install faster and compatible with all Android versions.

Check both v1 and v2.

PS: Only applicable for signing apps with Studio, other than using pipes to build.

For more refereces Link

Solution 5 - Android

How To sign APK using V2

https://developer.android.com/studio/command-line/apksigner.html

Step 1) Android Studio, select View > Tool Windows > Terminal

	gradlew assembleRelease
	

2) Align the unsigned APK using zipalign:

zipalign -v -p 4 my-app-unsigned.apk my-app-unsigned-aligned.apk

3) Sign your APK with your private key using apksigner:

apksigner sign --ks my-release-key.jks my-app-unsigned-aligned.apk --out my-app-release.apk

Note: To use the apksigner tool, you must have revision 24.0.3 or higher of the Android SDK Build Tools installed. You can update this package using the SDK Manager.

  1. Verify that your APK is signed:

    apksigner verify my-app-release.apk

Note: step 2 to 4 Perform in Command Prompt G:\AndroidStudio\Sdk\build-tools\25.0.0\

Solution 6 - Android

If you reach this, use Android Studio 3.3 and the error keeps coming up no matter you check the Signature checkboxes or not, try to manually delete the app/build folder.

Source: https://stackoverflow.com/a/54213942/787511

Solution 7 - Android

It is a problem from Google and it is issued two days ago in this page

Solution 8 - Android

As per the attached screenshot, Select both V1(Jar Signature) and V2(Full APK Signature). It will work.

enter image description here

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionNani KalyanView Question on Stackoverflow
Solution 1 - AndroidNani KalyanView Answer on Stackoverflow
Solution 2 - AndroidPiyush KukadiyaView Answer on Stackoverflow
Solution 3 - AndroidAhmadView Answer on Stackoverflow
Solution 4 - AndroidSanoop SurendranView Answer on Stackoverflow
Solution 5 - AndroidPiyush PatelView Answer on Stackoverflow
Solution 6 - AndroidD.RosadoView Answer on Stackoverflow
Solution 7 - AndroidMehran ZamaniView Answer on Stackoverflow
Solution 8 - AndroidSudheer Kumar PalchuriView Answer on Stackoverflow