Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.3 Signature Step Verification v1(Jar Signature), v2(Full Apk Signature) Disabled

Android Studio 2.3 Generate Signed Apk Second Step Signature Verification v1(Jar Signature), v2(Full Apk Signature) How to enabled ?

Signed Apk Second Step screenshot below gradle files:

My build.gradle file is :-

android {
    compileSdkVersion 25
    buildToolsVersion '25.0.2'
    dataBinding {
        enabled = true
    }
    defaultConfig {
        applicationId 'com.revolution.it'
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        vectorDrawables.useSupportLibrary true
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
        debug {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    androidTestCompile 'com.android.support.test.espresso:espresso-contrib:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.android.support', module: 'design'
        exclude group: 'com.android.support', module: 'recyclerview-v7'
    }
    compile 'com.android.support:appcompat-v7:25.1.0'
    compile 'com.android.support:design:25.1.0'
    compile 'com.android.support:support-v4:25.1.0'
    compile 'com.squareup.retrofit2:retrofit:2.1.0'
    compile 'com.squareup.retrofit2:converter-gson:2.1.0'
    compile 'com.squareup.okhttp3:logging-interceptor:3.3.1'
    compile 'uk.co.chrisjenx:calligraphy:2.2.0'
    compile 'org.greenrobot:eventbus:3.0.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.firebase:firebase-messaging:10.0.1'
    compile 'com.google.firebase:firebase-crash:10.0.1'
    compile 'org.apache.directory.studio:org.apache.commons.io:2.4'

    // Image and file picker
    compile 'com.droidninja:filepicker:1.0.8'

    compile 'com.android.support:multidex:1.0.1'
    compile 'com.google.android.gms:play-services-location:10.0.1'
    testCompile 'junit:junit:4.12'
    debugCompile 'com.amitshekhar.android:debug-db:1.0.0'

}

apply plugin: 'com.google.gms.google-services'

enter image description here

like image 550
Patel Milan Avatar asked Mar 16 '17 04:03

Patel Milan


People also ask

What is JAR signature and full APK signature?

The JAR-signed APK is a standard signed JAR, which must contain exactly the entries listed in META-INF/MANIFEST. MF and where all entries must be signed by the same set of signers. Its integrity is verified as follows: Each signer is represented by a META-INF/<signer>. SF and META-INF/<signer>.

What is v1 signature?

JAR signing (v1 scheme) APK signing has been a part of Android from the beginning. It is based on signed JAR. For details on using this scheme, see the Android Studio documentation on Signing your app. v1 signatures do not protect some parts of the APK, such as ZIP metadata.

What is v1 version?

V1, V01 or V-1 can refer to version one (for anything) (e.g., see version control)

What is APK signature?

APK Signature Scheme v2 is a whole-file signature scheme that increases verification speed and strengthens integrity guarantees by detecting any changes to the protected parts of the APK.


1 Answers

Finally i found solutions of the problem

v1 or v2 signature varification is enable when i update the gradel version no build.gradle(Proejct Level)
classpath 'com.android.tools.build:gradle:2.3.0'

my old build.gradle( Project Level)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
    }
}

allprojects {
    ........
}

task clean(type: Delete) {
    ......
}

my update build.gradle( Project Level)

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.0'
    }
}

allprojects {
......
}

task clean(type: Delete) {
......
}
like image 118
Patel Milan Avatar answered Sep 28 '22 08:09

Patel Milan