AS中使用xUtils报错找不到
来源:互联网 发布:final java 参数 编辑:程序博客网 时间:2024/06/18 04:36
AndroidStudio出现的错误
- 错误如下
![](http://o99dg8ap9.bkt.clouddn.com/AS%E4%B8%AD%E4%BD%BF%E7%94%A8xUtils%E6%8A%A5%E9%94%99%E6%89%BE%E4%B8%8D%E5%88%B0org.apache.http.client.methods.HttpRequestBase%E7%9A%84%E7%B1%BB%E6%96%87%E4%BB%B61.png)
解决方法
打开对应module的build.gradle文件
将 useLibrary ‘org.apache.http.legacy’ 将这一行代码添加到android{}根目录下
useLibrary 'org.apache.http.legacy'
![](http://o99dg8ap9.bkt.clouddn.com/AS%E4%B8%AD%E4%BD%BF%E7%94%A8xUtils%E6%8A%A5%E9%94%99%E6%89%BE%E4%B8%8D%E5%88%B0org.apache.http.client.methods.HttpRequestBase%E7%9A%84%E7%B1%BB%E6%96%87%E4%BB%B62.png)
举一反三
- 以后类似的错误也可以学着这样解决
0 0
- AS中使用xUtils报错找不到
- AS中使用xUtils报错找不到
- Android studio中使用xUtils报错
- Android studio 中使用xUtils报错找不到org.apache.http.client.methods.HttpRequestBase的类文件
- 使用SSH中Struts2找不到action,后台还没有报错
- 关于crontab使用中报找不到库
- fragment中使用xutils
- eclipse中使用maven插件的时候,运行run as maven build的时候报错
- eclipse中使用maven插件的时候,运行run as maven install的时候报错
- eclipse中使用maven插件的时候,运行run as maven install的时候报错
- clipse中使用maven插件的时候,运行run as maven build的时候报错:
- MYeclipse中使用maven插件的时候,运行run as maven build的时候报错
- 在使用AS过程中遇到的R文件报错(自己亲身经历)
- as 报错 Error:(303, 27) 错误: 找不到符号 符号: 方法 sin(float) 位置: 类 FloatMath
- AS 报错 Error:(303, 27) 错误: 找不到符号 符号: 方法 sin(float) 位置: 类 FloatMath
- AS报错Error(303,27),找不到符号 方法 FloatMath.sin()
- 【Oracle】-【sqlplus / as sysdba登录报错问题】-新用户使用sqlplus / as sysdba登录报错
- xUtils中viewUtils的使用
- java的动态代理机制详解
- 常用文件地址
- Python变量类型
- 2016/10/24 window.open隐藏参数、参数过长、中文编码问题
- SQL-SERVER 日期格式
- AS中使用xUtils报错找不到
- history命令添加时间和使用技巧
- Java并发编程:Thread类的使用
- win10安装64位mysql5.7 server
- Sublime Text3 Package Control 在菜单栏中不显示
- CPU是AMD的电脑如何安装android studio,以及studio的环境变量的配置
- Android面试题
- Android Https请求详细demo
- Ubuntu16.04如何把vim打造成为latex编辑器