错误: 出现的错误如下图所示 解决方法: 打开对应module的build.gradle文件,将useLibrary 'org.apache.http.legacy' 将这一行代码添加到android{}根目录下 解决^_^