缺少包根文件夹中的Andr​​oidř [英] Missing package in gen folder with R in android

查看:173
本文介绍了缺少包根文件夹中的Andr​​oidř的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有在android系统为r的问题。我有一些包的项目。我换了一个包装的名称。只见那包具有相同的名称是根文件夹中。当我改了名字,我清理项目,而该包从根文件夹中消失了。现在,我有误差

I have a problem with R in android. I have a project with some packages. I changed the name of one package. I saw that the package with the same name was in "gen" folder. When I changed the name, I cleaned the project and this package disappeared from "gen" folder. Now I have error with

研究不能得到解决。

和所有类我有R.错误我怎样才能修复我的问题呢?

and in all classes I have errors with R. How I can repair my problem?

推荐答案

所以我觉得这是答案

的Eclipse有时喜欢在添加一个进口android.R语句
  您的文件使用的资源,尤其是当你问Eclipse之上
  排序或管理进口。这将导致你的化妆来
  打破。查找出这些错误import语句并删除它们。

Eclipse sometimes likes to add an "import android.R" statement at the top of your files that use resources, especially when you ask eclipse to sort or otherwise manage imports. This will cause your make to break. Look out for these erroneous import statements and delete them.

参考

和尝试清理项目,如果你有

And try to clean your project and if you have

import android.R;

删除此行,并再次清洗。

remove this line and clean it again.

这篇关于缺少包根文件夹中的Andr​​oidř的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆