Android Studio Packaging Signature Tutorial

Source: Internet
Author: User

  1. Signature Packaging in Android studio

    Https://www.jianshu.com/p/aca66a7f6ddd

    Signing in Android Studio

    First click on the Generate signed APK in the build directory under the menu bar of Android Studio

    Then create the KeyStore file



    After filling in the information as required, click OK (remember that the password will be used after the fill)



    Next, you will set the KeyStore path and name of the file, and the file suffix defaults to JKs. Click OK.

    Fill in the previously set password, click Next, create a signed APK


    Select build type for release and click Finish.


    You can then see the generated signed apk under the app/build/outputs/apk path.

    Automated packaging with Android Studio

    I use Baidu to locate the SDK must be signed with a good apk can be located, and Android Studio default signature apk is not to locate, which makes me very depressed, and then went online search, the original gradle can be very good to help us solve this problem.

    Just add the following code to the Build.gradle under module:

    signingConfigs{      release {            storeFile file("/home/h/hjxkeystore.jks")        //证书存放目录    storePassword "123456"                               //密码    keyAlias "hjx"                                                //别名    keyPassword "123456"                                //密码(就是设置证书那两个密码,建议都填一样的)   }}buildTypes {        debug {                signingConfig signingConfigs.release               }       release {               signingConfig signingConfigs.release                  }}

    At this point the work is done, and the APK generated by each compilation is the APK that you have already signed, not the Android Studio auto-generated apk.



    Hjxandhmr
    Links: https://www.jianshu.com/p/aca66a7f6ddd
    Source: Pinterest
    The copyright of the book is owned by the author, and any form of reprint should be contacted by the author for authorization and attribution.

    1. On the home page of Android Studio, open the following path build > Generate signed APK

  2. If we are packing autographs for the first time, then we need to create new

  3. Click on the top right corner and choose where we store the key

  4. Complete the information according to the prompts

  5. After the "OK", jump out of the dialog box, directly "next" can

  6. Click Finish

  7. In the upper right corner, you will be prompted to pack successfully

    END

Turn:

Https://jingyan.baidu.com/article/363872ec2239336e4ba16fdd.html

Android Studio Super Simple package to build apk method

Https://www.jb51.net/article/127078.htm

Android Studio Packaging Signature Tutorial

Related Article

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.