Android Lint在组装发布目标时发现了致命错误,添加了一个语言xml文件
我刚刚在Android Studio项目中为另一种语言添加了一个新的xml文件。在构建项目时,我得到错误信息:Android Lint在组装发布目标时发现了致命错误,添加了一个语言xml文件,android,Android,我刚刚在Android Studio项目中为另一种语言添加了一个新的xml文件。在构建项目时,我得到错误信息: Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android { lintOptions {
Lint found fatal errors while assembling a release target.
To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android {
lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
} }
我发现翻译错误地输入了一个资源名。例如,它必须在哪里
<string name="Example">"This is an example"</string>
“这是一个示例”
他打字
<string name="Exmple">"This is an example"</string>
“这是一个示例”
所以,“Example”和“Example”是不同的。
Android studio本可以提供有关错误的更多信息。我花了几个小时才弄清楚。xml文件有数百个字符串资源。像“资源示例未使用默认语言定义”这样的错误行就足够了