android中的@SuppressLint
2013-01-24 23:38
357 查看
从别人那考的源码,报错,显示位置是@SuppressLint
一直没有用过注解方式,查了下,
我觉得这个注解实际作用不是很大,就直接删除了这个注解,然后编译执行。OK。
相关链接:http://blog.csdn.net/strliu/article/details/8084218
一直没有用过注解方式,查了下,
Lint是一个静态检查器,它围绕Android项目的正确性、安全性、性能、可用性以及可访问性进行分析。它检查的对象包括XML资源、位图、ProGuard配置文件、源文件甚至编译后的字节码。 这一版本的Lint包含了API版本检查、性能检查以及其他诸多特性。其中还有一个重要的改动是Lint可以使用@SuppressLint标注忽略指定的警告。
这个是android带的lint工具提示的,lint官方的说法是 Improving Your Code with lint,应该是帮助提升代码的 ,如果不想用的话,可以右键点工程,然后在android tools 中,选择 clear lint marker 就没有这个错误了
我觉得这个注解实际作用不是很大,就直接删除了这个注解,然后编译执行。OK。
相关链接:http://blog.csdn.net/strliu/article/details/8084218
相关文章推荐
- Android @SuppressLint
- Android中的@TargetApi and @SuppressLint
- Android @SuppressLint("SdCardPath")是什么意思?
- “import android.annotation.SuppressLint;”
- 我的Android进阶之旅------>Android中高低API版本兼容使用@TargetApi或者@SuppressLint("NewApi")
- Android @SuppressLint("NewApi")和@TargetApi()的区别
- android 基础 @SuppressLint("NewApi")和@TargetApi()的作用与区别
- 【Android】高低API版本兼容之@TargetApi与@SuppressLint("NewApi")
- 关于android的@TargetApi和@SuppressLint("NewApi")
- android.annotation.SuppressLint
- android.annotation.SuppressLint
- android中的@SuppressLint
- Android中Build类以及@SuppressLint("NewApi")和@TargetApi()区别
- Android代码优化——使用Android lint工具
- android studio lint(查看未被应用的资源文件)的使用
- Jenkins+ Gradle +Lint对Android工程源码进行静态代码分析
- Android Lint分类及常见错误
- Android代码分析工具lint学习
- Android Lint 检查规则的定制(基本篇)
- Android打包报错 Export aborted because fatal lint errors were found. These are listed in the Lint View