找不到对应的类,这些类应该是不建议使用了,所以找不到,要自己添加进去。
解决方法:
在gradle中添加useLibrary 'org.apache.http.legacy'
如下所示:
android {
compileSdkVersion 24
buildToolsVersion "25.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {......
找不到对应的类,这些类应该是不建议使用了,所以找不到,要自己添加进去。
解决方法:
在gradle中添加useLibrary 'org.apache.http.legacy'
如下所示:
android {
compileSdkVersion 24
buildToolsVersion "25.0.2"
useLibrary 'org.apache.http.legacy'
defaultConfig {......