Solution 1 :
It’s not volley its Gradle that is downloading the dependency, the
Gradle download **PackageName**
the possible reason could be:
1- Availability of read/write Permissions if you are using Linux Distro
if its the problem then use
sudo chmod 7777 your_file_name or you can use
sudo chmod 7777 * to change the permission of every file in the folder or drive
2- Slow Internet Connection
solution: try using SpeedTest if the internet speed is slower then the normal then its the problem otherwise, check the permission status on the drive and follow the first solution.
Try Invalidate and restart’ if the problem is with android studio will might get solved.
I am adding this in Gradle(Module app)
and press “sync now” and it starts loading after a long time of loading it shows an error that says cannot resolve volley and then I changed its version to 1.1.1 and press sync now and after two hours of loading it shows
please guide me….
Comment posted by Qasim Malik
I am not using linix and my internet speed is also fine its not the problem
Comment posted by GeekWithGlasses
@QasimMalik Volley has been discontinued from google long back if you still want to use it try adding this