Search code examples
androidprojects

Interdependent android projects


I was wondering if its possible to reference one android project from another android project. I have two projects, test1 and test2. I have added test2 in the project properties of test1 under the projects tab. Unfortunately it keeps throwing a NoClassDefFoundError. Also, would the second android project (test2) be installed as a separate apk on the phone or would it be part of the encapsulating android project (test1) ?

Thanks very much!


Solution

  • Just be aware that if test2 contains resources, these will not automatically be packaged in a non-android project and the R file will not be auto-generated.

    I suggest that you look at release 6 of the SDK tools (released this week), they now support library projects.