android studio:
在相应的module下的build.gradle中加入:
android {
useLibrary 'org.apache.http.legacy'
}
注意放置的位置:是在android {}中
android {
useLibrary 'org.apache.http.legacy'
}
注意放置的位置:是在android {}中
转载于:https://www.cnblogs.com/linson0116/p/6242598.html