问题
How to Sign Android App Bundle with the azure pipeline,
The documentation is available only signing APK https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/build/android-signing?view=azure-devops
when I try to sign aab with the above task I am getting below error
Error: Failed to deduce min API Level: APK does not contain AndroidManifest.xml. Please specify --min-sdk-version.
回答1:
I had same problem with signing the Android app bundle, Right now we fixed this issue with the signing app bundle in the Azure Build Pipeline
instead of signing Android app bundle from the Azure Release pipeline
through jarsigner
.
回答2:
How to Sign Android app Bundle with azure pipeline
AFAIK, you could sign Android app Bundle from command line:
jarsigner -verbose -sigalg SHA256withRSA -digestalg SHA-256 -keystore xample.jks bundle.aab keystoreAlias
The jarsigner.exe
is in the bin
folder of your java JDK install (Java SE), so we could get it by:
"%JAVA_HOME%"\bin\jarsigner.exe
So, we could use the command line task to invoke the jarsigner.exe
to sign Android app Bundle in the Azure pipeline.
Check this ticket for some more details.
Hope this helps.
来源:https://stackoverflow.com/questions/59405181/how-to-sign-android-app-bundle-with-azure-pipeline