How do I export a jar of an Android library project with a resource?
I tried this: How to create jar for Android Library Project but it doesn't work - I get: resource not found
How do I export a jar of an Android library project with a resource?
I tried this: How to create jar for Android Library Project but it doesn't work - I get: resource not found
First you have to import your library project from:
File
--> Import
--> Existing code
from the workspace.
After that for any project for which you want that library:
Right Click on your project --> Properties
--> on Left side select Android
.
Then click on the add
button.
Then the list of your library projects will appear.
Choose a project from the list and then click on Apply
and then OK
.
jar can't contain android resources.
If you need a library with resources, use it as an android library project.