Search code examples
androidgoogle-playapkpublishsigned

Cant upload a signed APK to PlayStore


I made an app and I published it on the PlayStore.
I made an update and now I'm trying to re-import it into the Android publish web site.

I generated my app like this : (with Android Studio)

  • Build
  • Generate Signed APK...
  • I choosed my app
  • Click "next"
  • And I used the same key, same password etc ...

The apk is succefully generated (and signed). Image

But when I tried to upload the app on the publish website (to update the app online) it tells me:

You have imported an APK file without a signature. You must create an APK file with a signature.

enter image description here

Have you got an idea why it's crashing?

It's contradincting, Android studio tells me that the signed app is generated but the website tells me it's not a signed app.

EDIT :
I tryed to "Build -> Clean Project" and "File -> Invalidate Caches / Restart..." without success. I also tryed to make a new project, copy past all code and retry :/


Solution

  • I assume that you're creating your keystore correctly and none of the solutions in AMAN SINGH's answer worked for you.

    There's a new signing scheme in Android called Apk Signing Scheme v2. https://source.android.com/security/apksigning/v2

    When you're signing your apk there're two checkboxes. v1 (jar signing) v2 (apk signing)

    v1 signature is required, if the APK's minSdkVersion is 23 and lower. Android versions before Android Nougat (API Level 24) ignore v2 signatures so apks which don't have a valid v1 signature will be rejected by Play Store.

    In Android 7.0, APKs can be verified according to the APK Signature Scheme v2 (v2 scheme) or JAR signing (v1 scheme). Older platforms ignore v2 signatures and only verify v1 signatures.

    enter image description here

    Edit:

    Thanks Alex Klyubin for information.