What is the correct Way to integrate KSOAP library in Android Studio?

Naman Vaishnav picture Naman Vaishnav · Aug 15, 2016 · Viewed 17k times · Source

I am trying something like this,

In Gradle,

Inside Build Types,

    repositories {
        maven { url 'http://ksoap2-android.googleco/svde.cmomn/2-repo'
  }

and in dependencies . . .

    compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.0'

Error: Failed to resolve dependencies

Answer

Naman Vaishnav picture Naman Vaishnav · Aug 20, 2016

Solution: inside build.gradle of a module (not project) write:

repositories {
    maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases/' }
}

and inside Dependencies

implementation 'com.google.code.ksoap2-android:ksoap2-android:3.6.2'