Android Lint 不显示翻译缺失错误

标签 android eclipse android-lint

我在 Windows 上使用 Android SDK 16.1 和 Eclipse。

我已根据 the documentation 将 ANDROID_LINT_COMPLETE_REGIONS 设置为 Windows 环境变量

我已经重启了我的电脑。

我已验证 System.getenv("ANDROID_LINT_COMPLETE_REGIONS") 使用 Windows 系统变量。

我已确认翻译错误已打开。

但是,我想要/期望的错误不是。我在“/res/values/strings.xml”中有一个不在“/res/values-xx/strings.xml”中的英文字符串。我预计 lint 会出错,因为我已经设置了 ANDROID_LINT_COMPLETE_REGIONS。查看 SDK 中的源代码,它似乎应该可以工作。

有人有其他我应该尝试的东西吗?

更新: 我在 Mac 上试过这个,虽然我坚持 ANDROID_LINT_COMPLETE_REGIONS="1",但我无法在 Eclipse 中发生错误。

最佳答案

无论这个问题是什么,升级到 Android SDK 17 都会为我解决这个问题。 Lint 现在可以检测到我何时没有翻译字符串。

关于Android Lint 不显示翻译缺失错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8583889/

相关文章:

java - com.cloudant.client.api.ClientBuilder 出现 NoClassDefFoundError 但类存在

android-gradle-plugin - Android lint AnnotationProcessorOnCompilePath with ButterKnife

android - 当 allowBackup 为 false 时,为什么会出现关于 fullBackupContent 警告的 lint 警告?

java - Android studio,如果按钮没有drawable

java - Android Camera2 API,限制焦距的最佳方法?

android - Fragment 中的 ViewPager

c++ - 错误:return type specified for 'operator std::string {aka std::__cxx11::basic_string<char>}'

java - 没有这样的属性: stopPort for class: org. gradle.api.internal.project.Default Project_Decolated

android - 避免 Android Lint 提示未翻译的字符串

android - Android 和 MQTT 的动态 channel