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

使用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 } }

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