代码片段分享

string.xml “ ” is not translated

2019-11-21  本文已影响0人  花艺荣

For Android Studio you can use either of the below ways to solve this issue

android {
     lintOptions {
        disable 'MissingTranslation'
    }
}
<?xml version="1.0" encoding="utf-8"?>
<resources
  xmlns:tools="http://schemas.android.com/tools"
  tools:ignore="MissingTranslation" >
  <!-- your strings here; no need now for the translatable attribute -->=
</resources>
<string name="hello" translatable="false">hello</string>
上一篇下一篇

猜你喜欢

热点阅读