背景
最近我已将我的应用迁移到了Android Studio。虽然在迁移过程中遇到了一些问题,但最终还是成功解决了。
问题
但不知何故,在使用Android Studio签署APK时,我遇到了很多类似这样的错误:
Error:(16) Error: "..." is not translated in "de" (German), "el" (Greek), "iw" (Hebrew) [MissingTranslation]
(其中“...”是一个字符串)
在底部,在发生许多这种错误后,我看到了这个:
Error:Execution failed for task ':app:lintVitalRelease'.
> 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
}
}
...
问题
我不确定哪里出了问题,也不知道该如何解决。在Eclipse上我很容易就解决了这个问题。缺少翻译似乎不应该阻止我签署APK...
对我来说,似乎是Lint阻止了APK的导出,原因是我没有翻译所有的字符串。这是真的吗?
有人能帮帮我吗?我该如何解决这个问题,让Lint只显示警告信息呢?或者如果我确定要这样做,会出现确认对话框吗?