为Android依赖项添加Spring以获取Android工作室项目

前端之家收集整理的这篇文章主要介绍了为Android依赖项添加Spring以获取Android工作室项目前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
官方 Spring for Android页面提到添加以下依赖项代码.
dependencies {
    compile 'org.springframework.android:spring-android:1.0.1.RELEASE'
}

这是最新版本的版本.(根据网站)
我在应用程序的build.gradle中添加了它,但是我收到错误

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

做正确的方法是什么?
我可以用同样的方式添加谷歌播放服务作为依赖.

解决方法

以下是Rest Template模块的正确依赖关系.我已经在 Spring for Android项目页面上更正了这一点.非常感谢你指出这个错误.
dependencies {
    compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'
}
原文链接:https://www.f2er.com/android/308678.html

猜你在找的Android相关文章