![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXcAPrrrG1C5iZp13kLv5PB0gVXSk6v7q4ntUHVt4-jkoxne1StE2uEr6W5cnuWP-gc9dWVBCJRgLRX4s0VZzSx6nAq8WWlDwmPJ4FaMssKZRjQ2Iu1oN_i5zR_3AkcAizjCSQCDkQtWDB/s640/Introducing-Volley-%25E2%2580%2593-A-Networking-library.png)
The easiest way to add volley library to android studio :
1-download git from here and install it: https://git-scm.com/download/win
2-Create a folder under C: and name it downloadVolley
3-open Git CMD and write cd c:downloadVolley and hit enter button
4-Write this line : git clone https://android.googlesource.com/platform/frameworks/volley and hit enter button.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiLwqSl_RunaSN5-qQt9JftKPUdKZh2rwu556IhGWV_8qQrLkMJGrOAsCOQuc-nDxRrN7HsT8CW4dyDjdmnmhovcyo2kbK1UnyrcxUP94eOOajOAw7onLrQ3Jy27ZFeDgII9Sc-daI56CBF/s640/git.png)
4-When the download is completed open android studio .
5- Click [File] --> [New] -->[Import Module] and select the library under "c:downloadVolley".
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhgOVBftjafeEs7TEIQXmextCXL6ZEzmSajq8ZE4W9Q-QyoHn9lYlC0OcdE5bCXCZ2apbMtN_bjkM2Tzz_e2Yd1aeZfclRk78vRQH_uwRTU8vQztGiERtQy5tlhbg6_TvV5r22GPmOcAs7U/s640/import.png)
6-Open build.gradle in your project and add the dependency: compile project(":volley").
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhycNw7N_s2iZsH1xZ2wm8CCw9hj0hl9Wt9Was8KU8XFdnGzTjrr7lnrn73-is3RI7voAqUu1iLtRX6g5uKsrQprX9e5CjD_Gyxz8qE7JYe6FObxKt2S7JvnXW1HY2QscB33WtlxvSupnlG/s640/volley.png)
and thats it :D
Import Android volley to Android Studio
include :app, :volley
compile project(":volley")
include :app, :3rd_party:volley
compile project(":3rd_party:volley")
Best way to incorporate Volley (or other library) into Android Studio project
apply plugin: android-library
dependencies { compile com.mcxiaoke.volley:library-aar:1.0.0}
Add Volley to An Android Studio Project
0 komentar:
Posting Komentar