引用的Java项目编译更新不更新的Andr​​oid库项目 [英] Referenced Java Project Compiled Update Doesn't Update Android Library Project

查看:159
本文介绍了引用的Java项目编译更新不更新的Andr​​oid库项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android项目(A)这是我的主要应用,它引用了一个Android库项目(B)。图书馆计划引用了一个标准的Java项目(C),这是我对许多Java和Android项目标准库。我将引用这三个项目为A,B和C。

I have an Android Project(A) that's my main application, it references an Android library Project(B). The Library Project references a standard Java Project(C) which is my standard library for many Java and Android projects. I will reference these three projects as A,B,and C.

我的问题是,如果我做出改变到C项目它会自动编译,但B不编译因此,一个看不到的变化。要做到这一点的唯一方法是手动清洁提单。有没有在Eclipse的方式强制B当C编译重新编译?

My issue is if I make a change to the C project it will auto compile but B doesn't compile hence A doesn't see the changes. The only way to do this is to clean B manually. Is there a way in Eclipse to force B to re-compile when C is compiled?

使用Eclipse 3.6.2与ADT 14和SDK 14。

Using Eclipse 3.6.2 with ADT 14 and SDK 14.

推荐答案

我也与ADT 14.有这个问题,在我的情况,我就少间接(项目A是普通的Java库(不是一个Android库) ,项目B是Android应用程序)。

I've also had this problem with ADT 14. In my case, I have less indirection (project A is the PLAIN java library (not an android library), project B is the android app).

什么是真正有趣的是,我有两个项目的B(两个Android应用),一个是工作。另一个是一个确切的复印件(对beta版本的细微的变化),包括项目文件的副本。

What was really fun was that I had two project "B" (two android apps), and one was working. The other was an exact copy (with minor changes for a beta release), including a copy of the project files.

它编译罚款,但没有对打包beta版本的库文件。

It compiled fine, but failed to package the library files on the beta version.

我删除项目(未删除的文件),并重新添加它。然后,我还重新配置应用程序的构建路径和删除的Java库。然后我又重新配置并重新添加它。

I removed the project (not deleting the files) and re-added it. Then, I also reconfigured the app's build path and removed the java library. Then I reconfigured it again and re-added it.

清洁/建造,并开始重新正确包装它们。

Clean/Build and it started packaging them correctly again.

我也没有构建顺序招前面提到的......它本身并不帮助,但可能到了后来的Eclipse刷新工作(在别人面前内置确信库项目)。

I also did the build order trick mentioned earlier...it didn't help by itself, but may have contributed to the later eclipse refresh working (made sure library project built before others).

这篇关于引用的Java项目编译更新不更新的Andr​​oid库项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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