How To Add Any Jar File in The Android Studio - Stack Overflow PDF
How To Add Any Jar File in The Android Studio - Stack Overflow PDF
Questions
Tags
Users
sign up
Badges
Unanswered
log in
Ask
android
android-studio
I'm working the basic android application , I do not know where to add the jar file in the android studio.
share
Asked
Mar 23 '15 at 10:03
marked as duplicate by Fahim, TGMCians, kenorb, dandan78, Raidri Mar 23 '15 at 13:06
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
If that .jar file is any api you want to use in your project then copy it in yourProject/app/libs directory Apurva Mar 23 '15 at 10:05
i add the jar in the libs folder but it's not taking seenu s Mar 23 '15 at 10:06
also add compile fileTree(include: ['*.jar'], dir: 'libs') under dependencies {...} in gradle.build Apurva Mar 23 '15 at 10:09
Error:(7, 0) Gradle DSL method not found: 'compile()' Possible causes: The project 'App' may be using a version of Gradle that does not contain the method. Gradle
settings.The build file may be missing a Gradle plugin. seenu s Mar 23 '15 at 10:12
order by votes
2 Answers
29
You can add the jar file in the android studio as follows:
1. Add a folder in your project named "Libs" and keep the jar files inside this folder , which you want to use in your project.
2. You will be able to see the jar file from android studio. Right click on the jar file and select the option "Add as Library" and Click
Ok.
share
First you have to click the top drop-down menu "Android" and choose "Project" to see the folders. 40-Love Jan 2 at 18:59
add a comment
Answered
Mar 23 '15 at 10:12
share
Answered
Mar 23 '15 at 10:30
meta chat tour help blog privacy policy legal contact us full site
Download the Stack Exchange Android app
2016 Stack Exchange, Inc