How to Sign Android app Bundle with azure pipeline

荒凉一梦 提交于 2020-12-11 05:57:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!