【发布时间】:2016-03-09 00:38:03
【问题描述】:
我的项目中有 Volley 库(在 libraries/volley 下),但是我更喜欢使用 Gradle 版本的 volley 库 (https://github.com/mcxiaoke/android-volley)。我想在 build.gradle 中使用“compile com.mcxiaoke.volley:library:1.0.19”
但每次我删除 Volley 文件库时,我都会在编译时收到错误消息:错误:找不到名称为“默认”的配置。
如何替换现有的 Volley 库并使用 gradle 版本?
之前谢谢...
【问题讨论】:
-
尝试编译'com.mcxiaoke.volley:library:1.0.19'
-
我试过了,然后出现error : "Error:(263, 37) error: 对JsonObjectRequest的引用不明确,都是构造函数JsonObjectRequest(int,String,String,Listener
,ErrorListener) 在 JsonObjectRequest 和构造函数 JsonObjectRequest(int,String,JSONObject,Listener ",ErrorListener) 在 JsonObjectRequest 匹配 -
查看post。
标签: android network-programming android-volley