8

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.

sat
  • 40,138
  • 28
  • 93
  • 102
  • That package doesn't exist: see http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.springframework.android%22 . Their instructions are in error. FWIW I've seen weird errors with the Android-Gradle version of Spring; it seems like their packaging in general is wonky. See http://stackoverflow.com/questions/24771014/spring-for-android-build-failing-when-including-spring-social-twitter/24787929#24787929 and http://stackoverflow.com/questions/22238893/android-studio-gradle-java-lang-illegalargumentexception/22256105#22256105 – Scott Barta Aug 12 '14 at 23:01
  • 1
    @ScottBarta thanks for those links. I work on the project, and I'll make sure we are tracking those. – Roy Clarkson Aug 13 '14 at 20:24

2 Answers2

9

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'
}
Roy Clarkson
  • 2,159
  • 18
  • 14
  • It works now, I came till your twitter profile page to ask before, but thought that is not the right platform. World is small :D – sat Aug 13 '14 at 20:12
  • Yes, it is a small world! It's usually more help for others to post questions here, but feel free to contact me other places too. And sorry again for the inconvenience with the incorrect information on the project page. – Roy Clarkson Aug 13 '14 at 20:22
0

You can find correct and lastest version on spring site. Under the Quick Start title.

http://projects.spring.io/spring-android/

Mete
  • 2,805
  • 1
  • 28
  • 38