导入项目后,无法生成R.java的解决

其实,很简单.....多想想就能解决...我也是瞎撞的...

R.java的内容是资源增加后,自动生成的...对吧?
哪资源不增加,当然R.java无法生成了...所以,只要把导入项目的res下的东西...重新ctrl+c,ctrl+v一下就搞定了.....简单吧?呵呵....

下下来,也让自己备忘了....

顺便说一下...javaeye的表情图标真的太恶心了...没有点好看的...




2.项目上带红色感叹号
只是不得其解的,打开项目时,总是提示:说要打开相关的项目。。。。
可是没有使用做为库项目啊。。。。。奇怪。。。。。
http://java.syntaxerrors.info/index.php?title=Project_'foo'_is_missing_required_Java_project:_'a.b.c'

搜一下,看了看。。。。嗯build path内。。。多加了其他项目到projects标签页了。。。。
remove后就好了....


引用
Project 'foo' is missing required Java project: 'a.b.c'
You can get the error
Project 'foo' is missing required Java project: 'a.b.c'
if you have specified that the Java project a.b.c is required, but it can't be found.
Anecdote: this happened to me on a day when Eclipse was crashing on me. What finally cleared it up was right clicking on a file in the Package Explorer, selecting Build Path-> Configure Build Path->Java Build Path->Order and Export, and ticking a checkbox for a different project. In other words, it seemed like it just needed to rebuild some database somewhere. I never did figure out where that database lives.  :-(


导入项目后,无法生成R.java的解决

你可能感兴趣的:(java)