如果你使用的 target sdk是23请在build.gradle加入 android{ useLibrary ‘org.apache.http.legacy‘ } 转载于:https://www.cnblogs.com/jiayonghua/p/5056716.html