无法解析符号“RequestQueue" [英] Cannot resolve symbol 'RequestQueue'

查看:38
本文介绍了无法解析符号“RequestQueue"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 android studio 和 volley 库的新手,所以请耐心等待.

I am new to android studio and volley library so please bear with me.

我已经通过 GitHub 添加了 volley 库,然后添加了这一行来构建 gradle 文件:

I've added volley library by GitHub and then and added this line to build gradle file:

compile 'com.android.support:appcompat-v7:23.0.1'

现在我正在尝试一些关于来自 api 的请求和响应的教程,但由于某种原因我无法创建 RequestQueue 的实例,为什么?我使用的是 Android 4.0.3 IceCreamSandwish

And now I am trying some tutorials about request and response from api, but for some reason I cannot make an instance of RequestQueue why? I am using Android 4.0.3 IceCreamSandwish

谢谢

推荐答案

将以下内容添加到 build.gradle 文件

add following to your build.gradle file

compile 'com.mcxiaoke.volley:library:1.0.19'

这篇关于无法解析符号“RequestQueue"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆