添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接
hi i am trying to add Apache http client to a project but i am getting the error




i am adding to the manifest



as far as i can tell that is all i have to do i have downloaded jar file also but dont think i need it but if i do can someone direct me to the path in the project it should be placed. but most tutorials i have read say i just need to add the line "
compile group: 'org.apache.httpcomponents', name: 'httpclient-android', version: '4.3.5.1'"
to my project. I have never used external librarys in android before i know how to do it in netbeans this has my head wrecked thanks any help would be great
The dependency should be something like

implementation 'org.apache.httpcomponents:httpclient-android:4.3.5.1'

("compile" has been deprecated for years.)

That library hasn't been updated since 2015, though, so unless there are very good reasons to use it, I'd go with OkHttp instead.

implementation 'com.squareup.okhttp3:okhttp:4.9.3'
contact us | advertise |