Skip to content
Rahul Rastogi edited this page Feb 15, 2019 · 7 revisions

This library makes easy to send network requests having Json data with java/kotlin objects directly without requiring any manual conversion from Java/Kotlin objects to json. You can send Multipart/form-data request too using this library. This library uses Volley library internally to send network requests.

1. Add following two dependencies in your module's build.gradle file using:

dependencies {
    implementation 'com.myvolley:MyVolley-kotlin:1.0.7'
    implementation 'com.google.code.gson:gson:2.8.2'
}

Note that, if you face any error like: More than one file was found with OS independent path 'META-INF/DEPENDENCIES' then add following lines in you module's build.gradle file:

android.packagingOptions {
    exclude 'META-INF/DEPENDENCIES'
    exclude 'META-INF/LICENSE'
    exclude 'META-INF/NOTICE'
}

If you're coding in Java language then refer: Using MyVolley with Java

If you are coding in Kotlin language then refer: Using MyVolley with Kotlin

Clone this wiki locally