3
This is the code I use to import.
import com.android.volley.Response;
import com.android.volley.toolbox.StringRequest;
And here below is a print of my screen showing that I’ve installed the Volley package correctly.
Update 1:
I updated build.Gradle(Module:app) with the code below as suggested but the error persists!
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
compile 'com.android.volley:volley:1.0.0' //este não está DEPRECATED
}
Error:Execution failed for task ':android-Volley-master:processDebugAndroidTestResources'.
java.io.Filenotfoundexception: D: Smoacademy android-Volley-master build Intermediates Symbols androidTest debug R.txt (The system cannot find the specified file)
Unsolved.
Update 3:
Problem solved after go to build and click on clean project.
Have you confirmed that the library has actually been imported from
Volley
?– viana
How do I confirm?
– Danilo Silva
Go to your Buld.Gradle and see if you’re using the
'com.android.volley:volley:1.0.0'
the'com.mcxiaoke.volley:library-aar:1.0.0'
is already DEPRECATED and has some classes that no longer work.– viana
For further information, please here and see in more detail.
– viana
The strange thing is that I went on all build.grade and did not tell the version whether it is the mcxiaoke or the other.
– Danilo Silva
You imported your Eclipse project?
– viana
This link ae that you sent me is from DEPRECATED. It would have the link of what is working?
– Danilo Silva
I imported from android studio.
– Danilo Silva
Precisely! I will post as answer as you have to do.
– viana