Triple-T / gradle-play-publisher

GPP is Android's unofficial release automation Gradle Plugin. It can do anything from building, uploading, and then promoting your App Bundle or APK to publishing app listings and other metadata.
MIT License
4.13k stars 341 forks source link

"APK signature is invalid or does not exist." #780

Closed Aditya94A closed 4 years ago

Aditya94A commented 4 years ago

Getting the following error upon publishing a release apk

"APK signature is invalid or does not exist. Error from apksigner: ERROR: JAR_SIG_NO_SIGNATURES: No JAR signatures"

Is there a way to specify that the apk should be built with JAR signature (both v1 and v2)

This: image

SUPERCILEX commented 4 years ago

Creating an APK from Android Studio doesn't do anything. See here to about configuring this in Gradle: https://developer.android.com/studio/publish/app-signing#secure-shared-keystore. Or take inspiration from the test app: https://github.com/Triple-T/gradle-play-publisher/blob/3b5546b44bbee8e8ba839b54fe42e1874a90af74/testapp/build.gradle.kts#L51