Package apk with commands

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.