android.annotation.SuppressLint 报错分析
来源:互联网 发布:vmware12 mac os补丁 编辑:程序博客网 时间:2024/06/04 18:14
解决办法:
- 推测这是由于之前的android.jar没有包含该类导致报错,但是在android4.2中则可以找到该类所在的jar包,比如我在路径:\android4.2\adt-bundle-windows-x86-20130522\sdk\tools\support中就找到了annotations.jar包,该jar文件不到2k大小。所以在找到该jar之后,直接将其拷贝到项目里面,并加入到Build Path即可。
- 第二种方法本人未亲测,仅供参考:右击 android 项目,之后在弹出的菜单上的 Android Tools 里面每个都点一下,可能是一个 add support package 或 fix project properties 或 android lint 相关的设置。Lint 只是一个代码检查的功能,就像 unix/linux 上的 C/C++ 编程工具的功能一样,你其实可能安全地把它们从代码中去掉,这个仅仅是给编译器使用的,并不影响原来代码的功能。
0 1
- android.annotation.SuppressLint 报错分析
- android.annotation.SuppressLint
- android.annotation.SuppressLint
- android.annotation.SuppressLint
- “import android.annotation.SuppressLint;”
- @SuppressLint 报错
- android.annotation包中TargetApi和SuppressLint注解
- android中的@SuppressLint
- android中的@SuppressLint
- android TargetApi 和 SuppressLint
- android SuppressLint解决办法
- Android @SuppressLint("SdCardPath")是什么意思?
- Multiple dex files define Landroid/annotation/SuppressLint
- android/support/annotation/colorres.class报错Android studio
- @SuppressLint
- Android中的@TargetApi and @SuppressLint
- javax.annotation.Resource报错
- android studio 报错分析
- 带权并查集 La 3027
- Best Practices for Speeding Up Your Web Site
- Ubuntu 14.04 编译newLISP 10.6.0
- 黑马程序员-HashSet讲解学习日记
- Activity Test1
- android.annotation.SuppressLint 报错分析
- 英国部份城市中英文对照
- UVa 10161 棋盘上的蚂蚁
- ACM_3:在一个字符串中找到第一个只出现一次的字符
- c++第三章 类域、友元、运算符重载
- vi学习笔记
- 表单设计改善用户体验
- Makefile写作的一种模板
- 日期选择器的实现