androidspringgradleandroid-studiospring-android

Adding Spring for android dependency to gradle + Android studio project


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.


Solution

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