简体   繁体   English

使用Eclipse将Java项目作为依赖项添加到Android项目

[英]Adding a Java project as a Dependency to an Android project with Eclipse

Is this possible? 这可能吗? I've searched around Stackoverflow for quite a bit already, but I coudln't find an answer. 我已经在Stackoverflow周围搜索了很多东西,但是我找不到答案。

It compiles without errors, but gives runtime errors and warnings, saying that certain classes were not found. 它编译时没有错误,但给出运行时错误和警告,表示未找到某些类。

UPDATE Yes this is possible. 更新是的,这是可能的。 Go to your project properties(right click project -> bottom of the list) and 'Java Build Path', you can add projects and libraries as you wish from this view. 转到项目属性(右键单击项目->列表底部),然后单击“ Java Build Path”,您可以根据需要从该视图添加项目和库。 Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM