capacitor-docs icon indicating copy to clipboard operation
capacitor-docs copied to clipboard

npx cap build docu is incomplete

Open tiga05 opened this issue 2 years ago • 0 comments

URL https://capacitorjs.com/docs/cli/commands/build OR https://github.com/ionic-team/capacitor-docs/blob/main/docs/cli/commands/build.md

What is missing or inaccurate about the content on this page?

Hi, I guess there is a missing documentation regarding the creation of a Android 11+ compatible version of an apk. I would like to create a Android apk file which is correctly signed. This can be done with using the apksigner. So i used this command: npx cap build android --keystorepath keystore.jks --keystorepass keystorepass --keystorealias keystorealias --keystorealiaspass keystorealiaspass --androidreleasetype APK It will create an apk which can not be installed on Android 11+ because it uses the jarsigner as default instead of the apksigner. Regarding a PR in the capacitor repo here: https://github.com/ionic-team/capacitor/pull/6442 @markemer has mentioned in this comment https://github.com/ionic-team/capacitor/pull/6442#issuecomment-1611995660 that one has to use --signing-type apksigner in order to create an android 11+ compatible version.

But this is not documented and it would be helpful to clarify this.

tiga05 avatar Nov 07 '23 20:11 tiga05