Sunday, February 21, 2016

Adding external library in Android studio

Adding external library in Android studio


1- Choose project view
enter image description here
2- Copy your JAR file in app -> lib folder
enter image description here
3- Right click on your JAR file and choose add as library
enter image description here enter image description here
4- Check it in build.gradle
enter image description here

Approach 2)
1- File -> New -> New Module
enter image description here
2- Import .JAR/.AAR Package
enter image description here
3- Browse your JAR File
enter image description here
4- Finish
5- File -> Project Structure -> Dependencies
enter image description here
6- You should click on + button and then click on Module Dependency
enter image description here
7- You will see your library here
enter image description here
8- choose your library and click ok
enter image description here
9- Then, you will see that your library is added.
enter image description here

Approach 3) Android is using https://bintray.com/ as remote library. If you can find your libraries in this website, you can try this approach.
1- File -> Project Structure -> Dependencies
enter image description here
2- Click on + button and choose library dependency
enter image description here enter image description here
3- find your library and select it, then click OK.

No comments:

Post a Comment

Comments system

Disqus Shortname

Disqus Shortname

Comments system