androidandroid-ksoap2

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


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


Solution

  • 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'