如果碰见这个问题
Error:(2) Error: "app_name" is not translated in "en" (English) [MissingTranslation]
Error:(4) Error: "title" is not translated in "en" (English) [MissingTranslation]
Error:(9) Error: "openservice" is not translated in "en" (English) [MissingTranslation]
Error:(14) Error: "open_service_title" is not translated in "en" (English) [MissingTranslation]
Error:(18) Error: "share" is not translated in "en" (English) [MissingTranslation]
Error:(17) Error: "check_update" is not translated in "en" (English) [MissingTranslation]
Error:(16) Error: "open_notify_service" is not translated in "en" (English) [MissingTranslation]
Error:(8) Error: "luckscren" is not translated in "en" (English) [MissingTranslation]
Error:(15) Error: "open_service_button" is not translated in "en" (English) [MissingTranslation]
Error:(6) Error: "qq" is not translated in "en" (English) [MissingTranslation]
Error:(13) Error: "service_name" is not translated in "en" (English) [MissingTranslation]
Error:(7) Error: "weixin" is not translated in "en" (English) [MissingTranslation]
Error:(5) Error: "start" is not translated in "en" (English) [MissingTranslation]
Error:(11) Error: "main_name" is not translated in "en" (English) [MissingTranslation]
Error:(12) Error: "accessibility_description" is not translated in "en" (English) [MissingTranslation]
Error:(10) Error: "openaccis" is not translated in "en" (English) [MissingTranslation]
Error:(19) Error: "tips" is not translated in "en" (English) [MissingTranslation]
Error:(20) Error: "qq_settings" is not translated in "en" (English) [MissingTranslation]
Error:(21) Error: "wechat_settings" is not translated in "en" (English) [MissingTranslation]
出现了很多关于xml中String中的问题 你只需要在你的Module的build.gradle中加入这样一段话
lintOptions{
checkReleaseBuilds false
abortOnError false
}
然后就可以完美解决问题。
本文介绍了解决Android应用中因XML字符串未进行英文翻译而导致的一系列错误的方法。通过简单修改Gradle配置文件,即可避免因为多语言支持不完整而引起的构建失败。
930

被折叠的 条评论
为什么被折叠?



