Eclipse Android: how to use a library project with linked folders?
If I have simple android library (set with project->properties->android->Library) with linked folders, the linked folders are not included in the application using the library.
Choosing a library project will add a link in the application project to the library's 'src' folder and all real folders, but it will ignore any linked folders in the Library project.---Edit: this actually works with more recent Eclipse and adt---
I can add the library as a project dependency (project->properties->javabuildpath->project) - this will make Eclipse aware of the classes in the linked folders, and fix the开发者_如何学Go compile errors in Eclipse, but will not include the library classes in the apk itself and the app will fail with java.lang.NoClassDefFoundError.What is your suggestion on using a library project with source folders linked in from outside of the library project's main folder?
The solution was under my nose all the time:
Apparently with a more recent version of eclipse and/or android tools it is enough to add the library as a project dependency project -> properties -> javabuildpath -> project
.
No need to use the android library setting at all project -> properties -> android
.
I am now using eclipse Helios (3.6) with Android tools 10.0.1, and it works in this combination.
精彩评论