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.
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.