Set android studio warning levels

前端 未结 3 1520
伪装坚强ぢ
伪装坚强ぢ 2020-12-06 16:48

I\'m trying to work with android studio, and so far so good. However, it has yellow indexes, warnings, lightbulbs, (etc) all over the place!

Which is a problem. No,

相关标签:
3条回答
  • 2020-12-06 16:49

    The latest version of Android Studio (2.1) seems to have a lot more flexibility with its warnings. Settings -> Editor -> Inspections has increased greatly. Then use the search feature to help find the warnings/errors you want to dis(en)able. Then click the checkboxes for the settings you like.

    Don't forget to choose "Default" or "Project Default" in the drop-down box.

    In this image I managed to find your specific issue (I completely agree with you about that one!) which I unchecked.

    0 讨论(0)
  • 2020-12-06 16:56

    These warnings you are seeing are related to the 'Lint' Static Analysis tool.

    Not sure about Android Studio, but you can usually right-click to eliminate a particular warning from being shown, or you can actually go into the Lint preferences and disable certain (or all) warnings from a central console.

    I find those warnings generally very helpful, and encourage you to not dismiss them so quickly.

    0 讨论(0)
  • 2020-12-06 17:11

    You can see your warning scheme by going to Android Studio -> Preferences. On the left side of the window you'll see many options organised in two groups: Project Settings [your project name] and IDE Settings. Inside the former look for Inspections. Now you can decide everything lint will have to say about your code.

    AS version 1.1.0.

    0 讨论(0)
提交回复
热议问题