安卓编译 translate error Lint: How to ignore “ is not translated in ” errors?

时间:2022-03-09 04:00:56

Add following at the header of your strings.xml file

<resources
xmlns:tools="http://schemas.android.com/tools"
tools:locale="en" tools:ignore="MissingTranslation">

or:

In "Window" > "Preferences" > "Android" > "Lint Error Checking":
(For Mac, "Eclipse" > "Preferences" > "Android" > "Lint Error Checking")

Find the MissingTranslation line, and set it to Warning as seen below:

安卓编译 translate error Lint: How to ignore “<key> is not translated in <language>” errors?