How to add a library to Android Studio
There are 3 different ways to add a library to Android Studio:
1. In build.gradle
2. Using a jar file
3. From android studio
1.Using gradle build
go to build.gradle file in your android studio project:
1. In build.gradle
2. Using a jar file
3. From android studio
1.Using gradle build
go to build.gradle file in your android studio project:
most libraries have a compile script provided in thier webpage.like here for picasso:
copy and paste this in build.gradle file and sync
DONE!
2. Using .jar file
Download .jar file from webpage:
create a new directory by right clicking your app folder in project menu and copy this .jar file into the folder
now right click the jar file and select add as library
3.From Android studio
go to Build>edit libraries and dependencies
press the green plus sign
and select library dependency
And search for your library and select it and click ok.
Comments
Post a Comment