Android
Building Requirements
To build an Android app:
- Windows/Linux/macOS
- Google Play Developer Account
- Keytool
- APKsigner
Generate Keystore
You need to generate a Keystore (if you already don't have one) and use it to sign app-release-unsigned.apk
.
Use the keytool
provided by the JDK found in %JAVA_HOME%/bin/
keytool -genkey -v -keystore my.keystore -keyalg RSA -keysize 2048 -validity 10000 -alias app
Sign
Android 7.0 introduces APK Signature Scheme v2, a new app-signing scheme that offers faster app install times and more protection against unauthorized alterations to APK files (See here and here for more details).
Therefore, Google implemented its own APK signer called apksigner
.
The script file can be found in %ANDROID_HOME%/sdk/build-tools/latest version/
(the .jar is in the /lib
subfolder).
Use it like this:
apksigner sign --ks my.keystore my-app.apk
The signed APK can be verified with:
apksigner verify my-app.apk
The official documentation can be found here.
Publish App to the Google Play Store
Submit the Android app via the Play Store.