Best way to incorporate Volley (or other library) into Android Studio project

前端 未结 8 809
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 17:55

I\'ve seen different advice on the best way to do this This question covers creating a jar. Elsewhere, I\'ve seen advice to simply copy the volley source into your own proje

8条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 18:45

    LATEST UPDATE:

    Use the official version from jCenter instead.

    dependencies {
        compile 'com.android.volley:volley:1.0.0'
    }
    

    The dependencies below points to deprecated volley that is no longer maintained.

    ORIGINAL ANSWER

    You can use this in dependency section of your build.gradle file to use volley

      dependencies {
          compile 'com.mcxiaoke.volley:library-aar:1.0.0'
      }
    

    UPDATED:

    Its not official but a mirror copy of official Volley. It is regularly synced and updated with official Volley Repository so you can go ahead to use it without any worry.

    https://github.com/mcxiaoke/android-volley

提交回复
热议问题