usually use Android Studio packaging, easy and fast, not too familiar with the command, but when uploading the APK package to the app market, you need to claim the APK, "select apk" on the claim page instead of uploading the APK app file you want to update, instead download the empty package file "unsign.apk" that we provided, you need to digitally sign it, Need to match the signature of the online app you're about to claim.
So we need to use our own signature file to sign the apk and upload it, the basic steps are as follows:
1. Go to the Bin directory of the JDK
For example, my directory is as follows:/library/java/javavirtualmachines/jdk1.7.0_79.jdk/contents/home/bin
2. Enter the following command in the bin directory
Jarsigner-verbose-keystore Demo.keystore-signedjar demo_signed.apk demo.apk demo.keystore
-verbose 输出签名的详细信息
-keystore demo.keystore 密钥库位置
-signedjar demor_signed.apk demo.apk demo.keystore 正式签名,三个参数中依次为签名后产生的文件demo_signed,要签名的文件demo.apk和密钥库demo.keystore.
You can do both of these steps.
"declaration"
Welcome reprint, but please keep the original source of the article
Blog Address: http://www.cnblogs.com/lping/
Article Source: http://www.cnblogs.com/lping/p/5509659.html
Package apk with commands