0

I've added the below lines in the dependency.

 implementation 'com.android.support:design:26.1.0'\
 implementation 'com.android.volley:volley:1.1.0'

I recently started working on Android Studio and I want to use the Volley library for my app but I can't add the source as a library in Android Studio.

I've searched the web but couldn't find anything. Everywhere is said to import but it is not showing import option in my Android Studio.

Ashok
  • 3,190
  • 15
  • 31
  • I guess these line should be put in your `gradle.build` file in the `dependecies` section. – Sebastian Lore Feb 06 '21 at 16:45
  • After putting compile 'com.android.volley:volley:1.1.0' into your build.gradle file under dependencies, it will not work immediately, you will have to restart Android Studio first! – Ashok Feb 06 '21 at 16:47
  • 1
    For more info can refer to this https://stackoverflow.com/questions/20059576/import-android-volley-to-android-studio – Ashok Feb 06 '21 at 16:48

2 Answers2

0

You have to put them in build.gradle in app module:

build.gradle app module

Amirhosein
  • 1,048
  • 7
  • 19
0

remove "" from 1st line try this implementation 'com.android.support:design:26.1.0' implementation 'com.android.volley:volley:1.1.0'