您的位置:首页 > 移动开发 > Android开发

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.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐