1. 程式人生 > >AndroidStudio編譯error:app:validateReleaseSigning'Keystore file not found for signing config 'release

AndroidStudio編譯error:app:validateReleaseSigning'Keystore file not found for signing config 'release

types 一段 pro sig build erro app ask val

使用AndroidStudio編譯時提示error:

Error:Execution failed for task ‘:app:validateReleaseSigning’.
> Keystore file not found for signing config ‘release’.

從字面意思可以看出是要打發布包缺少keystore簽名文件,只需要把build.gradle裏的一段代碼註釋掉即可,當然別忘了打發布包時取消註釋。

signingConfigs {
    release {
        storeFile file("ouman.jks")
        storePassword "com.ouman.car "
        keyAlias "ouman"
        keyPassword "com.ouman.car "
    }
}


buildTypes {
    debug {
        signingConfig signingConfigs.release
    }
    release {
        signingConfig signingConfigs.release
    }
}

是把上面這兩段代碼全都註釋。

AndroidStudio編譯error:app:validateReleaseSigning'Keystore file not found for signing config 'release