0

I am unable to import class after added dependency in build.gradle.

dependencies {
    ...
    compile 'com.mcxiaoke.volley:library:1.0.19'
}

Sync it with no error. Did some search about this issue. I found that it may be related to Project Structure -> Project -> Plugin Version. Imported module in Android Studio can't find imported class But I am not sure what version I should use.

My project version

Gradle version: 4.1
Android Plugin Version 3.0.1
Pak Ho Cheung
  • 1,382
  • 6
  • 22
  • 52

1 Answers1

2

mcxiaoke library is depricated now

      com.mcxiaoke.volley:library:1.0.19'

try official by google

try replacing your compile with this

 compile 'com.android.volley:volley:1.0.0'
Ankit Aman
  • 999
  • 6
  • 15