About Xutils framework appears unable to access HttpRequestBase can not obtain org.apache.http.clien
- balllyon50kvoksd
- Jun 14, 2020
- 1 min read
When testing the project now, the xUtils framework was employed, and this error occurred for the duration of the network request
Error: (62, 30) Error: Unable to access HttpRequestBase
Can not come across the class file of org.apache.http.client.strategies.HttpRequestBase
Note: Some input files use or overwrite outdated APIs.
Note: For additional information and facts, please use -Xlint:deprecation to recompile.
how to recover photos from formatted sd card thought the framework was too old, so I downloaded the newest framework X3, XUtils3 source address, still like this, I wanted to attempt to lessen the compiled version, from 23 to 22, essentially passed, it truly is actually strange, Baidu discovered
Android6.0 (api23) SDK, Android network requests force the use of HttpUrlConnection, and HttpClient has also been removed in the SDK.
1.eclipse:
Added in libs
org.apache.http.legacy.jar
The above jar package is beneath: **\\android-sdk-windows\\platforms\\android-23\\optional (ought to download the SDK of android6.0)
two.androidstudio:
Add in create.gradle beneath the corresponding module:
androiduseLibrary'org.apache.http.legacy'
Spend focus for the location: it can be in android
jar package download address: http://download.csdn.net/download/yy1300326388/9144503
Reference article: http://blog.csdn.net/langwang2/article/details/48806241
Comments