Download Uber-apk-signer.jar //top\\
apksigner sign --ks my.keystore --out signed.apk unsigned.apk
You can also download the uber-apk-signer.jar file directly from the following link:
This command will process every APK found in the apk_folder directory (non-recursively) as well as another.apk from a different location. download uber-apk-signer.jar
Ensure your Java Environment Variables are set correctly.
Use this when you're preparing your app for official publication. apksigner sign --ks my
java -jar uber-apk-signer.jar --apks /path/to/your.apk
After downloading, rename the file to uber-apk-signer.jar for easier command-line usage. download uber-apk-signer.jar
After signing your APK, verify its signature using the following command:
Navigate to the folder containing the uber-apk-signer.jar and your APK. Run:
java -version