Android studio: unable to select signature version

I want to build my application with V1 and V2 version. But both of them are gray. Can anyone please tell me how to make it selectable? [generate signature]

+3


source to share


3 answers


As described in the whitepaper

Android 7.0 introduces APK Signature Scheme v2, a new app subscription scheme that offers faster app install times and greater protection against unauthorized changes to APK files. By default, Android Studio 2.2 and the Android Plugin for Gradle 2.2 sign your app using both the APK Signature Scheme v2 and the traditional signing scheme, which uses JAR signature.



So make sure your Android hosting and Gradle module plugin (build.gradle-> com.android.tools.build: gradle) is updated to 2.3 and up .

+7


source


Updating Android Studio and Gradle version worked for me.



Also check your build.gradle and customize it. More details here APK v2 Subscription Scheme

+4


source


Basically your android studio is up to date, but the gradle plugin of the build.gradle version of the classpath 'com.android.tools.build:gradle'

module is classpath 'com.android.tools.build:gradle'

not working. So please update your Gradle plugin version as follows:

dependencies{
     classpath 'com.android.tools.build:gradle:3.0.1'
 }

      

or higher in build.gradle. and sync the project. Thank!!

0


source







All Articles