Refering From One Android Project To Another Eclipse
Solution 1:
if the library project is an android project , you need to make it a library one by choosing it from the project properties , and then to reference it via the same place but on the project that uses it. don't forget that there are some rules when you use a library project . see my post here for more information.
if the library project is java , its exactly as using other java projects.
Solution 2:
This is a long shot, but it worked for me (having also spent hours on this, after reading all the same posts you did...)
If you are confident that you have correctly configured the project references, this could be a result of a silent build failure.
In my case, the problem arose due to incompatibilities between the build environments for my two projects. In Project "A", which was pure Java, the following line compiled without error in Project A's build environment:
if ((int) d.get("good")) == 0) {....
It turns out that this was not legal in the (Android) Project "B", which required an object cast:
if ((Integer) d.get("good")) == 0) {....
However, the only indication that I got of the error was the same as what you experienced, a "VFY: Unable to resolve..." error.
I found the error in a painful way: By copying the code from Project "A" into Project "B," finding the errors, and fixing them in Project "A." There is probably a more intelligent way than mine to find such incompatibilities, such as by tweaking the settings in both projects to match exactly.
Post a Comment for "Refering From One Android Project To Another Eclipse"