lbedogni
lbedogni

Reputation: 7997

Library doesn't generate jar file

I created an Android library in Eclipse, marked as library and without errors.

I then created a project, which should use this library. The project code is fine, I checked all under Order and Export, but the library jar doesn't build.

I double checked almost everything, am I missing something obvious?

Thanks

Upvotes: 1

Views: 102

Answers (2)

Avadhani Y
Avadhani Y

Reputation: 7626

If you want to see the jar file, check to see in

Eclipse IDE -> Project Explorer -> Your Project Folder -> Android Dependencies -> Your Library Project as jar file. 

Please check this path and there should be jar file.

Upvotes: 1

karllindmark
karllindmark

Reputation: 6071

As far as I know, you should only need to do the following:

  1. Right click on the library project, and select "Project properties"
  2. Go to the Android tab
  3. Mark project as library
  4. Go back and right click on your actual application project and open up the properties
  5. Go to the Android tab
  6. Add the library project as a library
  7. Build all projects
  8. Run the app in the emulator/your device

That said, I've never really had any problems with it - I just hook it up as a library as described above, and I'm all set.

Upvotes: 2

Related Questions