无法解析符号newRequestQueue-排球 [英] Cannot resolve symbol newRequestQueue - Volley

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

问题描述

我在MainActivity文件中有以下代码:

I have this bit of code in the MainActivity file:

RequestQueue queue = new Volley.newRequestQueue(this);

,由于某种原因, newRequestQueue 部分为红色,当我将鼠标悬停在该部分时,会得到

and for some reason the newRequestQueue part is red and when I hover over it I get

Cannot resolve symbol 'newRequestQueue'

我该如何解决?

推荐答案

请参见 https://developer.android.com/training/volley/requestqueue.html

尝试一下:

RequestQueue queue = Volley.newRequestQueue(this);

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

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