任务:app:packageRelease
com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "C:\Users\Karim Bux\Chhotu Ram\Desktop\JKS\hanujks.jks":
Keystore被篡改,或密码错误
我在生成签名apk时遇到了这个问题所以请各位一步一步指导我现在应该做什么?
检查我的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
applicationId "com.hanumanbeniwal.www.hanumanbeniwal"
minSdkVersion 14
targetSdkVersion 26
versionCode 2
versionName "1.1"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support:design:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha7'
compile 'com.google.android.gms:play-services-ads:11.0.4'
testCompile 'junit:junit:4.12'
}

答案 0 :(得分:1)
检查您输入的凭据是否正确。我遇到同样的问题,我的别名错了,所以检查双倍时间。 如果应用程序不在Play商店,则生成新的.JKS。