Search code examples
androideclipsebuildpath

Android app with eclipse project dependency


I have an Android app which uses a jar library generated from another Eclipse project.

But is it possible to directly reference this project instead of using an intermediate jar ?

When I do that, the build succeeds but I get VerifyErrors at runtime saying the classes of my external project can't be found...


Solution

  • Yes, you can directly reference this project by setting it as library. To do so:

    1. Right click on your desired library project, choose properties and mark checkbox 'isLibrary'
    2. Then just simply right click on you project, go to properties and add those library project