Reputation: 84
Anyone can tell how to add external library and jar file in Android Studio, I know in Eclipse you can Right click -> Property -> Java Build Path, but what to do in Android Studio ?
Upvotes: 0
Views: 138
Reputation: 926
For adding external library or dependency, you can either edit gradle
file for app manually, or you can do it by Project Structure
.
Gradle
File of appOpen gradle file of app, you can add/edit in the dependencies
tag,
the first line compile fileTree(dir: 'libs', include: ['*.jar'])
indicates that it will include the jar files in this project;
Project Structure
File
-> Project Structure
, and in the pop-up window, click app
in the left list, then click dependencies
, in the top-right corner, click +
to add new dependency.
Upvotes: 1