Apache HttpClient Android (Gradle)

前端 未结 8 2139
不知归路
不知归路 2020-12-04 12:11

I have added this line to my build.gradle

compile group: \'org.apache.httpcomponents\' , name: \'httpclient-android\' , version: \'4.3.5\'

8条回答
  •  醉酒成梦
    2020-12-04 12:26

    None of the others worked for me. I had to add the following dependency, as explained here

    compile group: 'cz.msebera.android' , name: 'httpclient', version: '4.4.1.1'
    

    because I was targeting API 23.

提交回复
热议问题