top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration

Facebook Login
Site Registration

How to create jar for Android Library Project?

0 votes

I have to create a library that I am going to export to the client in a jar file. Is there any way to create a jar with the resources in it?

posted Jul 23, 2014 by Prashant

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote
Best answer

Jar can hold only Java class files not the resources file.

1- Make your library project a normal project by deselecting IsLibrary flag.
2- Execute your project as Android Application. (It will not show any error)
3- You'll find a .jar file in bin folder along with .apk.
4- Give you .jar who want to use your library.
5- Tell them to just import external jar into build path.

answer Jul 24, 2014 by Rahul
Thank u Rahul. you save my time :)
Similar Questions
+1 vote

I've a library project that i need to add in another project as maven dependency. Please help!

0 votes

I'm looking for native library for video play with custom buffering for rendering of big video files (500MB+) in android application. What is the best options?

Contact Us
+91 9880187415
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Karnataka INDIA.