android中的@SuppressLint
2015-01-12 14:39
113 查看
Lint是一个静态检查器,他围绕Android项目的正确性、安全性、性能、可用性以及可访问性进行分析。他检查的对象包括XML资源、位图、ProGuard配置文件、源文件甚至编译后的字节码。
这一版的Lint包含了API版本检查、性能检查以及其他诸多性能。其中还有一个重要的改动是Lint可以使用@SuppressLint标注忽略指定的警告。
这个是android带的Lint工具提示的,Lint官方的说法是Improving Your Code with Lint,应该是帮助提升代码的,如果不想用的话,可以右键点击工程,然后在android tools中选择clear lint marker,就没有这个错误了。
这一版的Lint包含了API版本检查、性能检查以及其他诸多性能。其中还有一个重要的改动是Lint可以使用@SuppressLint标注忽略指定的警告。
这个是android带的Lint工具提示的,Lint官方的说法是Improving Your Code with Lint,应该是帮助提升代码的,如果不想用的话,可以右键点击工程,然后在android tools中选择clear lint marker,就没有这个错误了。
相关文章推荐
- “import android.annotation.SuppressLint;”
- 我的Android进阶之旅------>Android中高低API版本兼容使用@TargetApi或者@SuppressLint("NewApi")
- android.annotation.SuppressLint
- android 基础 @SuppressLint("NewApi")和@TargetApi()的作用与区别
- android.annotation.SuppressLint
- 关于android的@TargetApi和@SuppressLint("NewApi")
- Android中的@TargetApi and @SuppressLint
- Android @SuppressLint("SdCardPath")是什么意思?
- android中的@SuppressLint
- 【Android】高低API版本兼容之@TargetApi与@SuppressLint("NewApi")
- Android @SuppressLint("NewApi")和@TargetApi()的区别
- Android中Build类以及@SuppressLint("NewApi")和@TargetApi()区别
- Android @SuppressLint
- Android Lint(官方代码优化利器)
- Android Ant|| Lint||Maven
- Android Lint简介
- Android Lint erroneously thinks min SDK version is 1
- SuppressLint cannot be resolved to a type
- Android Lint Checks
- @SuppressLint vs @TargetApi