Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/183.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Lint在组装发布目标时发现了致命错误,添加了一个语言xml文件_Android - Fatal编程技术网

Android Lint在组装发布目标时发现了致命错误,添加了一个语言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 {

我刚刚在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 {
        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文件有数百个字符串资源。像“资源示例未使用默认语言定义”这样的错误行就足够了