使用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
原文地址:https://www.cnblogs.com/yelanggu/p/9549231.html
时间: 2024-11-08 18:09:26