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

  • 2017-6-5 09:39
  • PHP二次开发
  • 阅读(657)
  • 评论(0)
  • 来源:互联网
  • 摘要: 在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 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


    PHP技术交流QQ群:422137578

    除非注明,文章均为 PHP二次开发 原创,转载请注明本文地址:http://www.php2.cc/article-2621-1.html

    相关阅读

    最新评论

    用户名:  *

    邮 箱:  *

    网 址: 注意加上“http://”哦!