Adding Spring for android dependency to gradle + Android studio project
Asked Answered
P

2

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.

Privy answered 12/8, 2014 at 22:52 Comment(2)
That package doesn't exist: see search.maven.org/… . 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 #24771514 and #22239393Namhoi
@ScottBarta thanks for those links. I work on the project, and I'll make sure we are tracking those.Axil
A
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'
}
Axil answered 13/8, 2014 at 20:6 Comment(2)
It works now, I came till your twitter profile page to ask before, but thought that is not the right platform. World is small :DPrivy
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.Axil
C
0

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

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

Cinquefoil answered 11/2, 2016 at 15:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.