Skip navigation

Add JAR files with dependencies

Add JAR files with dependencies: Android Studio Essential Training
Add JAR files with dependencies: Android Studio Essential Training

If you want to include your own Java archive, or JAR file, in your project, you can do it in a couple of different ways. Just like libraries in Maven repositories, you can connect your project to a JAR file through a dependency, listing the JAR file in your Gradle build script. First you should copy the JAR file to your project's libs directory, then mark it as a library. That's all you need to do - it will be added to the build script, and will become a part of your app's classpath.

Resume Transcript Auto-Scroll
Skill Level Beginner
3h 13m
Duration
184,011
Views
Show More Show Less
Skills covered in this course
Developer Mobile Apps Android Studio

Continue Assessment

You started this assessment previously and didn't complete it. You can pick up where you left off, or start over.

Start Your Free Trial Now

Start your free trial now, and begin learning software, business and creative skills—anytime, anywhere—with video instruction from recognized industry experts.

Start Your Free Trial Now