是不是在一个库项目生成R.java文件 [英] R.java file is not generated in a library project

查看:165
本文介绍了是不是在一个库项目生成R.java文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用 SlidingMenu 库。如上所述,我使用的目录中创建一个新的Andr​​oid项目,试图项目>清除生成R.java,但不起作用。

I'm trying to use the SlidingMenu library. As described, I created a new Android project using the library directory, tried "Project > Clean" to generate the R.java but doesn't work.

好奇的事实是,如果我打开项目属性,并取消了图​​书馆是一切都将工作,没有错误产生R.java文件。除了与缺乏R.java文件,标签问题presents这个错误:

The curious fact is that if I open the project properties and uncheck the "Is Library" all will work and R.java file is generated without errors. Besides the errors with the lack of R.java file, the tab "Problems" presents this:

非解析AAPT个错误!检查控制台输出。

Unparsed aapt error(s)! Check the console for output.

如果我删除,在几个答复指出,它再次当我清理项目出现。

If I remove, as suggested in several responses, it appears again when I clean the project.

我AP preciate任何建议。

I appreciate any suggestion.

推荐答案

解决了。

我不知道到底是什么原因,但解决的办法是删除了Eclipse的Andr​​oid SDK和使用 ADT捆绑此链接: http://developer.android.com/sdk/index.html

I do not know exactly what the reason, but the solution was to remove the Eclipse, the Android SDK and use the ADT Bundle from this link: http://developer.android.com/sdk/index.html

我使用的是标准的Eclipse IDE与ADT插件之前。

Before I was using a standard Eclipse IDE with the ADT plugin.

谢谢你的答复。

这篇关于是不是在一个库项目生成R.java文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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