Upload new APK to Alpha - failed

AndroidAndroid Studio

Android Problem Overview


Upload new APK to Alpha

Upload failed

> You uploaded an APK with an invalid signature (learn more about > signing). Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR > signatures

Not sure what to do, I'm just trying to make an Alpha release of an Android Studio project..

Android Solutions


Solution 1 - Android

You can see from the error that there is no jar signature.Select both the checkboxes for signature versions (v1 and v2) in last step and then build the apk. It will workSee this image

Solution 2 - Android

I was getting this error when I updated to android studio 3.3, the solution was remove the build folder, and then try again.

Solution 3 - Android

I think that you probably simply accepted the default configuration settings during the APK signup process in Android Studio. This is ok most of the time, but might generate a slight confusion if you use Android 7.0+ Indeed from version 7.0, Android intruduces the new V2 Signature Scheme in addition to the "old" V1. The new scheme is supposed to offer faster app install times and more protection against unauthorized alterations to APK files, and it is therefore the default scheme in Android Studio's "Generate Signed APK" dialog box.

The problem is that Google Play in your case wants the V1 scheme to be applied, that is the JAR signing, rather than the APK signing as in V2. The Google Play documentation explicitly states that: "Although we recommend applying APK Signature Scheme v2 to your app, this new scheme is not mandatory. If your app doesn't build properly when using APK Signature Scheme v2, you can disable the new scheme.".

The solution that I have found in those cases is to enable both, as shown in the screenshot below. Once you do that the signed APK should be accepted without problems by the Google Play versions management system.

Generate Signed APK dialog box in Android Studio

This is the complete procedure:

  1. in Android Studio, select "Build > Select build variants" and make sure that the "release" variant is selected
  2. select "Build > Generate Signed APK" and enter the information about your keystore. I suppose that you have already created a signed APK in your previous try so these fields should be already set to the latest values. Click [Next].
  3. the next screen is where you have to make sure to check both V1 and V2 as the signature versions, afterwards click [Finish] to generate the APK.

Solution 4 - Android

  1. Build -> Clean project
  2. Select the checkboxes for signature versions v1 and v2

Solution 5 - Android

It worked, when selected only V1 (Jar Signature) :-)

Solution 6 - Android

Many hints spread across the comments above but these steps are what (FINALLY) worked for my Android (Cordova) app as of 11/2019:

  1. Increment Android Build/Version Number in Manifest (if necessary)

  2. Run cordova build android

  3. Open project in Android Studio

  4. Run Build > Clean Project

  5. Run Build > Generated Signed Bundle / APK

  6. Fill out dialogs and ONLY check the "V1 JAR" sign checkbox - did not check the "V2 Full APK Signature" checkbox.

  7. Upload APK to Google Play Dashboard

  8. Cross your fingers

Solution 7 - Android

First remove your project's build folder, then generate apk or bundle again. This solution was fixed the issue for me.

Solution 8 - Android

Make sure you're using the right certificate key file and follow these steps in Android Studio:

  1. Click Build -> Clean Project
  2. Click Build -> Generate Signed Bundle / APK
  3. Follow the steps and make sure you've selected both options in "Signature Versions" (V1 - Jar Signature and V2 - Full APK Signature)

That should work!

Solution 9 - Android

That error was done after I updated my Android Studio to latest version and built again.

(PS: Now I am getting the error "Your app currently targets API level 26 and must target at least API level 29 to ensure it is built on the latest APIs optimized for security and performance. Change your app's target API level to at least 29" but this appears simple to solve...)

Solution 10 - Android

I have an updated version of Android Studio. Therefore, I don't have the option to check both v1 and v2.

Build Clean and Generate Signed Bundle/APK again worked for me.

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
QuestionDevin Andres SalemiView Question on Stackoverflow
Solution 1 - AndroidSonyView Answer on Stackoverflow
Solution 2 - AndroidPablo CegarraView Answer on Stackoverflow
Solution 3 - AndroidSal BorrelliView Answer on Stackoverflow
Solution 4 - AndroidIbrahim SušićView Answer on Stackoverflow
Solution 5 - AndroiditzoView Answer on Stackoverflow
Solution 6 - AndroidChristopherView Answer on Stackoverflow
Solution 7 - AndroidRıdvan Nuri GöçmenView Answer on Stackoverflow
Solution 8 - AndroidDavid ToledoView Answer on Stackoverflow
Solution 9 - AndroidrscView Answer on Stackoverflow
Solution 10 - AndroidGuilherme OliveiraView Answer on Stackoverflow