0

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...

sdabet
  • 18,360
  • 11
  • 89
  • 158

2 Answers2

2

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
Marcin S.
  • 11,161
  • 6
  • 50
  • 63
1

Yes, ADT supports libraries in form of shareable source code and resources, not just .jar. Please see Android Developer website, especially Managing Projects -> Library Projects article.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141