A note about some errors which cause by android.R
2011-10-01 19:11
477 查看
Eclipse's Organize Imports tool can sometimes lead to hard-to-find problems.(First of all ,of course ,you should make sure your xml files have no errors.
)
For example,if your project doesn't have
R.java generated (which might happen because there's and earlier problem with one of the XML resources ),then Organize Imports will import the
android.R class.This other R class is part of the Android framework and has the same name as your local R class, making it hard to notice. So,if you have many compilation errors around you references to R resources
,check that android.R is not imported.
)
For example,if your project doesn't have
R.java generated (which might happen because there's and earlier problem with one of the XML resources ),then Organize Imports will import the
android.R class.This other R class is part of the Android framework and has the same name as your local R class, making it hard to notice. So,if you have many compilation errors around you references to R resources
,check that android.R is not imported.
相关文章推荐
- One or more errors encountered while loading the designer. The errors are listed below. Some errors can be fixed by rebuilding y
- Android系统编译错误Note: Some input files use or override a deprecated API. 解决办法
- [重要]Update curl on Android to resolve security problem cause by OpenSSL
- Some Errors Usually Seen In Android Project
- How about some Android graphics true facts
- some note about js
- Note 07/08/02 some question about js on Asp.Net : Vss 6.0
- android graphic(18)—How about some Android graphics true facts?
- Some issues about building android SDK
- Learning about Android Graphics Subsystem by MIPS Engineer
- Android解决eclipse导入工程到androidstudio中出现错:There are unrecoverable errors which must be corrected first
- 053-6 Which three statements about performance analysis by SQL Performance Analyzer are true?(Choose
- SDK 组件 Qupaisdk 启动出错,错误消息为 [Qupaisdk], the android stack error message is Fail to start the plugin, which is caused by Failed resolution of: Lcom/duanqu/qupai/recorder/R$array;
- Android系统编译错误Note: Some input files use or override a deprecated API. 解决办法【转】
- Share some tips about android develop(一)
- 错误编码 = 10022 错误消息 = SDK 组件 Qupaisdk 启动出错,错误消息为 [Qupaisdk], the android stack error message is Fail to start the plugin, which is caused by No implem
- Some errors about installation[continue to update]
- Given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in d
- Android - porting MPTCP on android-x86-6.0-rc1 (some files may cause issues)
- Android解决eclipse导入工程到androidstudio中出现错:There are unrecoverable errors which must be corrected first