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

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?_第1张图片

你可能感兴趣的:(安卓编译 translate error Lint: How to ignore “ is not translated in ” errors?)