What is the right way to integrate the KSOAP library into Android Studio?

I'm trying something like this,

In Gradle,

Types of internal assembly,

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

+7
android android-ksoap2
source share
3 answers

Decision:

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

and inside dependencies

 compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.1' 
+21
source share

Go to this link and download the jar file. Then add the downloaded jar file to the libs folder inside your application folder ( Your Project-> app-> libs ). Then right-click on the ksoap jar file and select Add As Library .

Done.

EDIT: UPDATED LINK

+2
source share

Another way:

1: Download the ksoap2-versionX.jar from here .

2: Copy ksoap2-versionX.jar to the libs folder in your project.

3: Right-click in the copied file in your project and select Add As Library .

See: http://ask.android-studio.org/?/question/188

-one
source share

All Articles