Lint: How to ignore “ is not translated in ” errors?

后端 未结 13 2021
长情又很酷
长情又很酷 2020-11-27 10:46

I can\'t compile/debug our Android app, because the localization files are not perfect yet.

My IDE\'s validation tool Lint create errors saying:

13条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-11-27 10:59

    Android Studio:

    • "File" > "Settings" and type "MissingTranslation" into the search box

    Eclipse:

    • Windows/Linux: In "Window" > "Preferences" > "Android" > "Lint Error Checking"
    • Mac: "Eclipse" > "Preferences" > "Android" > "Lint Error Checking"

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

    Missing translations, is not translated in

提交回复
热议问题