编译报如下类似错误 eg:Program type already present: org.apache.http.params.HttpConnectionParams
Android studio双击shift,搜索重复依赖的库或者jar包等
解决方法:
1.在APP的build.gradle中查找重复依赖的库和jar,修改为compileOnly的方式依赖。
2.尝试Clean工程或重启Android studio,然后重新编译,Android studio经常会抽风。
3.尝试使用exclude过滤重复的依赖。
11-06
3666
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-28
3万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交