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

前端 未结 8 820
被撕碎了的回忆
被撕碎了的回忆 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:55

    UPDATE:

    compile 'com.android.volley:volley:1.0.0'
    

    OLD ANSWER: You need the next in your build.gradle of your app module:

    dependencies {
            compile 'com.mcxiaoke.volley:library:1.0.19'
            (Rest of your dependencies)
    
        }
    

    This is not the official repo but is a highly trusted one.

提交回复
热议问题