“import android.annotation.SuppressLint;”
2014-11-24 08:54
120 查看
“import android.annotation.SuppressLint;” 导入别人的android程序源码,但是这句话划红,提示:The import android.annotation cannot be resolved。 同时划红的还有:@SuppressLint("SdCardPath")。 右击 android 项目,之后在弹出的菜单上的 Android Tools 里面每个都点一下,可能是一个 add support package 或 fix project properties 或 android lint 相关的设置。 Lint 只是一个代码检查的功能,就像 unix/linux 上的 C/C++ 编程工具的功能一样,你其实可能安全地把它们从代码中去掉,这个仅仅是给编译器使用的,并不影响原来代码的功能。
相关文章推荐
- android.annotation.SuppressLint
- android.annotation.SuppressLint
- eclipse 导入工程报错Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint
- Unable to execute dex: Multiple dex files define Landroid/annotation/SuppressLint;
- 我的Android进阶之旅------>Android中高低API版本兼容使用@TargetApi或者@SuppressLint("NewApi")
- Andoird Studio 1.1.0 "import android.support.annotation.Nullable;"失败
- Android @SuppressLint("SdCardPath")是什么意思?
- Multiple dex files define Landroid/annotation/SuppressLint
- android中的@SuppressLint
- Android @SuppressLint("NewApi")和@TargetApi()的区别
- Android @SuppressLint
- Android中的@TargetApi and @SuppressLint
- Android中Build类以及@SuppressLint("NewApi")和@TargetApi()区别
- android中的@SuppressLint
- 【Android】高低API版本兼容之@TargetApi与@SuppressLint("NewApi")
- 关于android的@TargetApi和@SuppressLint("NewApi")
- android 基础 @SuppressLint("NewApi")和@TargetApi()的作用与区别
- Android导入的项目再次启动eclipse时提示The import android cannot be resolved的解决办法
- Import android项目或者新建Exsiting project时,出错提示 overlaps the location of another project
- Remove '@override' annotation 和Android requires compiler compliance level 5.0 or 6.0. Found '1.4' in