When creating a signed APK release, I came across the following: if I create a signed apk from android studio (via Build → Generate Signed APK... ) with a build.gradle file similar to this (only relevant parts):
signingConfigs { release { storeFile file('/keystore/location/mykeystore.keystore') storePassword 'storepassword' keyAlias 'key' keyPassword 'keypassword' } } buildTypes { release { signingConfig signingConfigs.release } }
Received fingerprint apk YY:YY .
However, if I build the APK from the console, as described here , using build.gradle like this:
buildTypes { release { } }
And sign it with the same keystore file, the final apk fingerprint will be XX:XX .
In addition, both SHA fingerprints are different from my SHA debug certificate fingerprint. What is the reason for this behavior?
I am using buildToolsVersion 23.0.0
android studio gradle version 1.3.0
android sdk tools version 24.3.4
version for Android version 1.3.1
android android-studio android-gradle apk gradlew
Mikhail
source share