I have already referred to other answers like this, but still getting the following exception :
E/UncaughtException: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/volley/toolbox/Volley;
Here are the dependencies :
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
testImplementation 'junit:junit:4.12'
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.google.android.gms:play-services-base:12.0.1'
implementation 'com.google.android.gms:play-services-location:12.0.1'
implementation "com.google.firebase:firebase-messaging:15.0.0"
implementation 'com.google.firebase:firebase-core:12.0.1'
implementation 'com.android.volley:volley:1.1.0'
apply plugin: 'maven'
}
As a matter of fact, when I try adding Volley as a dependency, it is never shown in the list of dependencies. Whereas other google libraries are displayed.
Note : I have already checked other StackOverFlow links, so please, only if you are absolute sure that an answer is correctly working for this, feel free to mark this a duplicate.