Adding kSOAP dependency to Gradle project

后端 未结 8 709
梦毁少年i
梦毁少年i 2020-12-24 13:43

I\'m trying to make kSOAP working in my Android project with Gradle.

This is my project\'s build.gradle file:

buildscript {
    repositories {
               


        
8条回答
  •  旧时难觅i
    2020-12-24 13:54

    I know there are already answers using a jar file. I wanted to add one with the latest updated links:

    Download ksoap2-android-assembly-3.6.4-jar-with-dependencies.jar and add it to folder libs.

    in build.grade:

    android {
    ...
        configurations {
            all {
                exclude group: 'com.squareup.okhttp3', module: 'okhttp'
            }
        }
    }
    ...
    dependencies {
    ...
     implementation fileTree(include: '*.jar', dir: 'libs')
    ...
    }
    

提交回复
热议问题