Java – How to solve this Android project dependency problem?

How to solve this Android project dependency problem?… here is a solution to the problem.

How to solve this Android project dependency problem?

I have the following items under Eclipse:

A (Android project) = > B (Java project

) = > C (Java project).

where the symbol “

=>” indicates that the project to the left of the symbol depends on the project on the right side of the symbol, and the build path of project B always contains project C in all cases.

If I include both project B and C under project A’s build path, A works fine.

However, if I include project B under project A’s build path and not project C, A crashes at runtime.

Since there is no direct dependency between A and C, is it possible to solve the above problem without including project C under the build path of project A?

Be careful not to convert C to an android project to allow other Java projects that depend on it (not indicated here) to run as well.

Solution

Project

C’s library should be exported by Project B.

http://www.informit.com/articles/article.aspx?p=367962
Section 6.1.4

greeting
Stephen

Related Problems and Solutions