Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npx cap build docu is incomplete #231

Open
tiga05 opened this issue Nov 7, 2023 · 0 comments
Open

npx cap build docu is incomplete #231

tiga05 opened this issue Nov 7, 2023 · 0 comments

Comments

@tiga05
Copy link

tiga05 commented Nov 7, 2023

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: ionic-team/capacitor#6442 @markemer has mentioned in this comment ionic-team/capacitor#6442 (comment) 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant