How does android studio introduce signature files

Source: Internet
Author: User

In Android studio, to do Sina, such as the need to sign to use the three-way function, test sharing content is particularly troublesome. So in the project with the directory, add your own Keysotre file. And the signature is configured in Gradle.


There are two ways to introduce a signature file in Android Studio.

  1. Build->generate signed APK. Then always next, will encounter let you specify the key store path (1), specify and enter the password, always next until finish starts packing.

  2. Add in Gradle, will signingconfigs perfect, specify the corresponding file, password, etc. in release, and need to specify Signingconfig android.signingConfigs.release in Buildtypes. Finally, under the app root directory

    ./gradlew Build

    After successful execution, the debug package and release package are->build->outputs->apk under the app directory.


    signingconfigs {   release {        storefile file (Key_store)        storepassword key_ store_password       keyalias key_alias        keypassword key_alias_password   } 
buildtypes {    debug {         minifyEnabled true         Proguardfiles getdefaultproguardfile (' proguard-android.txt '),  ' Proguard-project.txt '      }    release {         Signingconfig android.signingconfigs.release        minifyenabled  true        proguardfiles getdefaultproguardfile (' Proguard-android.txt '),  ' Proguard-project.txt '     }} 

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

How does android studio introduce signature files

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.