Generating a signed apk from Qt Creator
As we know it's required to be signed bundle of APK, to install in a Android Device. 1. Generate a private key using the keytool command provided by the Java Development Kit (JDK). This key will be used to sign your .apk file. Run a command similar to the following to generate a private key: keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 100 00 Replace my-release-key.keystore with the desired filename for your keystore file and alias_name with a name for your key alias. 2. Packaging the .apk File : In Qt Creator, go to Build > Build APK (or Build > Prepare for Android App Bundle) to generate the release package. Qt Creator will compile your application in release mode and package it into an unsigned .apk file. 3. Signing the .apk File : Use the jarsigner tool provided by the JDK to sign your .apk file with the private key you generated earlier. Run a command similar to the following to sign the .apk ...
Comments
Post a Comment