详见http://stackoverflow.com/questions/32434488/the-type-org-apache-http-header-cannot-be-resolved-it-is-indirectly-referenced
错误内容:The type org.apache.http.HttpEntity cannot be resolved. It is indirectly referenced from required .class files。。。。。
解决方法: 如上连接所述
如果是studio的话,在gradle中增加 useLibrary ‘org.apache.http.legacy’
如果是eclipse的话,在AndroidSDK/platforms/android-23/optional 找到对应的包 导入
|
If you are compiling against Android 6.0 (SDK 23), you need to include org.apache.http.legacy library.
In Android Studio add
android {
useLibrary 'org.apache.http.legacy'
}
to build.gradle.
In Eclipse copy org.apache.http.legacy.jar from AndroidSDK/platforms/android-23/optional to
libs folder.
|