ChatGPT解决这个技术问题 Extra ChatGPT

Upload new APK to Alpha - failed

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..

Are you trying to upload a signed apk?
yes, unsigned ... seems like I'm in a Catch-22 because I know I can't upload without signing, but to sign, I know it's possible to sign via google Play, but to do this, I have to already have something uploaded ... or so it seems, I am completely new to Android deployment, all I know about Android is Activities, Fragments, that sort of thing, hard to find a solid resource on deployment, pretty scattered information.
If you tried to upload signed apk here is the answer for you

S
Sony

https://i.stack.imgur.com/xUUAq.png


I haven't explored the IDE enough to know what window that is.
Go to build> generate signed apk and proceed
Don't know why, but it worked for me checking both V1 and V2. After 3-4 hours last night another 6 hours today, and checking SO, and chatting with Google Support, I don't care why anymore, just glad to move on.
I had a problem with this, i had to first remove the apk from disk, otherwise playstore still told me the jar is not signed.
This wasn't working for me. The only thing that worked was deleting the build folder and building the signed apk again as @Pablo Cegarra mentioned.
P
Pablo Cegarra

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


Works for me. Just another of annoying mysterious errors that creep in with every Android Studio update.
Thanks a lot. I was struggling for more than an hour.
Thanks a ton! I have been fighting with this for several days now! Even Google Play Developer Support didn't know how to fix this.
@SolderingIronMen Build-> Clean Project did not work for me. Resolved only by removing the Build folder.
Dude you saved my life
S
Sal Borrelli

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:

in Android Studio, select "Build > Select build variants" and make sure that the "release" variant is selected 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]. 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.


didn't help me :(
I
Ibrahim Sušić

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


i
itzo

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


C
Christopher

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

Increment Android Build/Version Number in Manifest (if necessary) Run cordova build android Open project in Android Studio Run Build > Clean Project Run Build > Generated Signed Bundle / APK Fill out dialogs and ONLY check the "V1 JAR" sign checkbox - did not check the "V2 Full APK Signature" checkbox. Upload APK to Google Play Dashboard Cross your fingers


It worked when I select only V1 for Ionic. When I select only V2 or V1/V2 both it shows the error
R
Rıdvan Nuri Göçmen

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


D
David Toledo

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

Click Build -> Clean Project Click Build -> Generate Signed Bundle / APK 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!


r
rsc

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...)


G
Guilherme Oliveira

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.