Adding Spring for android dependency to gradle + Android studio project

sat picture sat · Aug 13, 2014 · Viewed 9.3k times · Source

Official Spring for Android page mentions to add following dependency code.

dependencies {
    compile 'org.springframework.android:spring-android:1.0.1.RELEASE'
}

which is latest version of build as of this time.(as per website)
I have added it in apps' build.gradle but I get an error as

Error:Failed to find: org.springframework.android:spring-android:1.0.1.RELEASE

What is the right way to do it? I could add google play services as dependency in the same way.

Answer

Roy Clarkson picture Roy Clarkson · Aug 13, 2014

Here is the correct dependency for the Rest Template module. I've corrected this on the Spring for Android project page. Thank you very much for pointing out this error.

dependencies {
    compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'
}