Import Android volley to Android Studio

前端 未结 17 2219
孤街浪徒
孤街浪徒 2020-12-07 11:33

I wanna use the google\'s volley library

I am using Android Studio and I know how to add .jar libraries.

But I could not create a .jar library with the voll

17条回答
  •  孤街浪徒
    2020-12-07 12:21

    Or you can simply do

    ant jar
    

    in your cloned volley git project. You should now see volley.jar in the volley projects bin folder. Copy this to you Android Studio's app\libs folder. Then add following under dependencies section of Module level build.gradle file -

    compile files('libs/volley.jar')
    

    And you should be good import and use the library classes in your project,

提交回复
热议问题