Subclipse 和 Android 问题
我正在尝试利用此处找到的一些代码:
http://androidtabs.googlecode.com/svn/trunk /
这包括此处找到的演示的基类:
http://www.gregbugaj.com/wp-content/uploads/2009/06/tabwidgetdemo.zip
无论如何,我想将这两个项目分开,引用基础项目每当我在新项目中需要它时。无论如何,我安装了 Subclipse 并成功签出了基础项目。但是,在 Eclipse 中,它仍然会抛出编译器错误,例如“无法加载项目‘TabWidget’的属性文件”(基类)。我编辑了这个基础项目的生成器设置,但仍然收到相同的错误。有什么建议吗?
另外,我意识到我可以简单地将缺少的类从我的基础复制到我的演示中,但如果可能的话更愿意将它们分开。
I'm attempting to utilize some code found here:
http://androidtabs.googlecode.com/svn/trunk/
This includes the bases classes for the demo found here:
http://www.gregbugaj.com/wp-content/uploads/2009/06/tabwidgetdemo.zip
Anyway, I'd like to keep the two projects separate, referencing the base project whenever I need it in a new project. Anyway, I installed Subclipse and successfully checked-out the base project. However, in Eclipse, it still throws compiler errors, for instance, "Failed to load properties file for project 'TabWidget'" (a base class). I edited the Builder settings for this base project yet I still receive the same errors. Any suggestions?
Also, I realize I could simply copy the missing classes from my base to my demo, but prefer to keep them separate if possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您不需要实际将基础项目作为应用程序运行,则可以将其设为 Eclipse Library 项目。
右键单击项目根目录-->属性-->安卓-->检查“Is Library”
然后在您的演示中,您告诉 eclipse 使用该项目。
右键单击项目根目录-->属性-->安卓-->库/添加... 单击底座。
做一个项目 -->此后清理以重建项目和希望问题会消失。
If you do not need to actually run the base project as an application, you could make it an Eclipse Library project.
Right click on project root --> Properties --> Android --> Check "Is Library"
Then in your demo, you tell eclipse to use that project.
Right click on project root --> Properties --> Android --> Library/Add... Click on the base.
Do a Project --> Clean after this to rebuild the project & hopefully the problems would disappear.