I have made a library project that uses Async and Json/Gson libraries. It is working perfectly fine if I use this project as library project inside another Application Project. I don't want my code to be open to world so I tried to make a JAR of my Library Project. I am getting error that shows that the Async and GSON libraries can not be referenced.
- Is my JAR not including the ASYNC and JSON libraries?
- if not then how to do it? I have Checked the libs folder when exporting Library Project to JAR.
- If Jar has included Libraries then why can't it get a reference? Is there any way that I can make a reference to the libraries present inside of the JAR of my library project?
Where am I making a mistake?
Update-1
Ok I have checked by extracting my jar and there is a lib folder there which has all the libraries that I have used in my Library Project.
Update-2
How I am exporting my Library Project as Jar.
- Select Project to Export
- Chose Jar File
- Chose only src and lib folder.
- Checked
- Export generated class files and resources
- Compress the contents of the JAR file
- Chose Destination
- Left All other checks as defaults and Finish.