Android Studio翻译编辑器显示缺少的翻译(但不是真的!)

时间:2018-05-11 06:12:56

标签: android android-studio translation android-studio-3.0 smartgit

使用外部工具SmartGIT更新字符串资源文件时出现奇怪的效果。这是我从翻译编辑器中看到的:

enter image description here

但是如果我签入资源文件,两个字符串都用德语(de)翻译:

enter image description here

重建项目无效。

1 个答案:

答案 0 :(得分:4)

自从切换到Android Studio 3.1以来,这是一个反复出现的问题。

我支持不同语言的分支,当来回切换时,缓存会被破坏,Android Studio无法扫描其他资源目录。

在大多数情况下,"文件 - >无效缓存/重新启动... - > Invalidate和Restart" 似乎解决了这个问题。