AndroidStudio编译error:app:validateReleaseSigning'Keystore file not found for signing config '
Posted 野狼谷
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了AndroidStudio编译error:app:validateReleaseSigning'Keystore file not found for signing config '相关的知识,希望对你有一定的参考价值。
使用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 '的主要内容,如果未能解决你的问题,请参考以下文章
AndroidStudio 很多类红色高亮找不到,可以编译运行