The type org.apache.http.HttpEntityEnclosingRequest cannot be resolved

Android 6.0 :The type org.apache.http.HttpEntityEnclosingRequest cannot be resolved

解决办法:

If you are compiling against Android 6.0 (SDK 23), you need to include org.apache.http.legacy library.

如果用 的是Android Studio ,则加上

android { 
useLibrary ‘org.apache.http.legacy’ 
}

如果用的Eclipse:

AndroidSDK/platforms/android-23/optional中的org.apache.http.legacy.jar 复制到项目的libs 文件夹下
 原文来自:http://stackoverflow.com/questions/32434488/the-type-org-apache-http-header-cannot-be-resolved-it-is-indirectly-referenced

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ai_yong_jie/article/details/51543656
个人分类: Android基础知识
上一篇INSTALL_FAILED_UNKNOWN_SOURCES
下一篇友盟 tencent、weixin、weibo文件重复冲突
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

关闭
关闭