How to add a .jar file into Android studio (version 0.4.0) project

Prasad Nair picture Prasad Nair · Dec 21, 2013 · Viewed 21.3k times · Source

How to add a jar file into a Android studio project. For example I am trying to add ksoap2-android-assembly-3.1.1-jar-with-dependencies.jar into a project. Dont see an option anywhere to add the jar file into the project so as to access the library functions within it.

Answer

Scott Barta picture Scott Barta · Dec 23, 2013

Create a libs folder in your project and copy the jar into it. In the project view, right-click on the jar and choose Add as Library.