Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio : Can not choose signature version

I want to build my app with V1 & V2 signature version. But both of them are greyed out. Can anyone please tell me how to make it avaiable to choose? [generate signature]

like image 378
snow2102 Avatar asked Apr 20 '17 16:04

snow2102


People also ask

Why do APKS need to be signed?

Application signing ensures that one application cannot access any other application except through well-defined IPC. When an application (APK file) is installed onto an Android device, the Package Manager verifies that the APK has been properly signed with the certificate included in that APK.

What is v3 signature?

APK Signature Scheme v3 Block. The v3 scheme is designed to be very similar to the v2 scheme. It has the same general format and supports the same signature algorithm IDs, key sizes, and EC curves. However, the v3 scheme adds information about the supported SDK versions and the proof-of-rotation struct.

What is signing APK?

A Keystore is basically a binary file that contains a set of private keys. Every App that we install using the Google Play App Store needs to be signed with a Keystore. The signed apk is simply the unsigned apk that has been signed via the JDK jarsigner tool.


2 Answers

Updating Android Studio and Gradle version worked for me.

Also check your build.gradle and configure it. More information here APK Signature Scheme v2

like image 26
iravul Avatar answered Nov 14 '22 23:11

iravul


As described in the official document,

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

So be sure that the android studio and the gradle plugin of module(build.gradle->com.android.tools.build:gradle) are updated to 2.3 and above.

like image 68
John Avatar answered Nov 15 '22 01:11

John