Reputation: 8941
I would like to start a project with ksoap2 in Android Studio. I have set up the project using the Andoid Studio wizard. But how can I add ksoap2?
All the ksoap website says is:
Gradle: The same coordinates for the JAR and the release repository URL as used for Apache Maven can be used.
But that does not help much. I assume I have to modify one or more of the Gradle scripts Android Studio has generated for me. Or is there some sort of automatism (like Nuget does with Visual Studio and C# projects).
Upvotes: 0
Views: 1032
Reputation: 8638
You should add below lines to your app level build.gradle
buildTypes {
repositories {
maven { url 'https://oss.sonatype.org/content/repositories/ksoap2-android-releases' }
}
}
dependencies {
compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.1'
}
Upvotes: 2
Reputation: 3242
Use compile 'com.google.code.ksoap2-android:ksoap2-android:3.6.1'
in your gradle build.
Upvotes: 0