Error while Signing a aab file with apksigner...

2,633 views
Skip to first unread message

Josiel Soares

unread,
Jan 29, 2022, 3:08:29 PM1/29/22
to Kivy users support
Hello everyone, i am facing a error at sign my bundle app,
what this means, you saw this error anywhere? how can fix this
and release a signed aab app?

$ apksigner sign --ks release.keystore --in app.aab --out app-signed.aab

Current result is:
Exception in thread "main" com.android.apksig.apk.MinSdkVersionException: Failed to determine APK's minimum supported platform version. Use --min-sdk-version to override
        at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:387)
        at com.android.apksigner.ApkSignerTool.main(ApkSignerTool.java:88)
Caused by: com.android.apksig.apk.MinSdkVersionException: Failed to determine APK's minimum supported Android platform version
        at com.android.apksig.ApkSigner.getMinSdkVersionFromApk(ApkSigner.java:957)
        at com.android.apksig.ApkSigner.sign(ApkSigner.java:278)
        at com.android.apksig.ApkSigner.sign(ApkSigner.java:214)
        at com.android.apksigner.ApkSignerTool.sign(ApkSignerTool.java:381)
        ... 1 more
Caused by: com.android.apksig.apk.ApkFormatException: Missing AndroidManifest.xml
        at com.android.apksig.ApkSigner.getAndroidManifestFromApk(ApkSigner.java:913)
        at com.android.apksig.ApkSigner.getMinSdkVersionFromApk(ApkSigner.java:955)
        ... 4 more

Robert

unread,
Jan 29, 2022, 3:33:30 PM1/29/22
to Kivy users support
Neither of the links referenced here use apksigner to sign an aab
Both use keytool

Josiel Soares

unread,
Jan 29, 2022, 4:47:37 PM1/29/22
to kivy-...@googlegroups.com
How can to sign a aab app?

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/1ff96ae2-30cf-492d-87ef-85bb107d2e2en%40googlegroups.com.

Josiel Soares

unread,
Jan 29, 2022, 5:01:01 PM1/29/22
to kivy-...@googlegroups.com
Hey everyone, 
with that command i reach my app signed:
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore app.keystore app.aab appAlias

i used it and fixed, i think
now i will see if all works at playstore

Josiel Soares

unread,
Jan 31, 2022, 12:20:41 PM1/31/22
to Kivy users support
Let's see: I was wanting to update my app on the playstore, however when I signed the app it displayed that error shown there, so I put the parameter as suggested --min-sdk-version 30 on the same line of apksigner sign... at the end, and that worked here.
Reply all
Reply to author
Forward
0 new messages