Android项目引用"正常"在Eclipse的Java项目自SDK工具更新17 [英] Android project referencing "normal" java project in eclipse since sdk tools update 17

查看:91
本文介绍了Android项目引用"正常"在Eclipse的Java项目自SDK工具更新17的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于最新的Andr​​oid SDK我无法再运行我从日食的android应用程序,因为他们无法找到类,我在其他的Eclipse项目,这是通过正常的构建路径引用。

Since the latest android sdk i am unable to run my android applications from eclipse anymore because they cant find classes which i have in other eclipse projects, which are references via the 'normal' build path.

这肯定之前工作。而且在eclipse没有编译错误。

this has definitely worked before. and there are no compile errors in eclipse.

这可能是因为,现在你必须标记为以防机器人库项目,它们是由一个机器人项目中引用这些项目。

could it be that, now you have to mark those projects as android library projects in case they are referenced by an android project.

编辑:看来,这就是为什么它被打破: <一href="http://tools.android.com/recent/dealingwithdependenciesinandroidprojects">http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

edit: it seems that this is the reason why it is broken: http://tools.android.com/recent/dealingwithdependenciesinandroidprojects

但我还是要搞清楚我现在应该怎么引用我的正常的Java项目的Andr​​oid应用程序的项目。

but i still have to figure out how i should now reference my "normal" java projects to the android app project.

推荐答案

链接 @clamp只要是下面的句子:

In the link @clamp provided there is the following sentence:

容器将现在也可以填充的是由库项目引用的Java-只项目。

The container will now also be populated with Java-only projects that are referenced by Library Projects.

这意味着,我们可以用一个空库项目的Andr​​oid项目,并定期Eclipse项目之间的胶水的项目。设置好它是这样的:

This means, that we can use a empty library project as a "glue" project between the android project and the regular eclipse project. Just set it up like this:

机器人 - >胶水项目 - >常规项目

android --> "glue" project --> regular project

- >表示要看

胶水项目拥有自营出口常规项目,已被标记为库。在Android项目只有库项目已被引用。

The glue project has to export the regular project and has to be marked as library. In the android project only the library project has to be referenced.

现在使用普通的Eclipse项目工程再为我用胶水项目的最小的开销。

Now using a regular eclipse project works again for me with the minimal overhead of the "glue" project.

这篇关于Android项目引用&QUOT;正常&QUOT;在Eclipse的Java项目自SDK工具更新17的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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