Adding Spring for android dependency in gradle + android studio project

The official Spring page for Android adds the following dependency code.

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

which is the latest build version at the moment. (according to website)
I added it to the build.radry application, but I get an error message like

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

What is the right way to do this? I could add Google Play services as a dependency in the same way.

+6
source share
2 answers

Here is the correct dependency for the Rest Template module. I fixed this on the Spring project page for Android . Thanks so much for pointing out this error.

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

You can find the correct and latest version on spring website. In the title of the quick launch.

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

0
source

Source: https://habr.com/ru/post/973731/


All Articles