我将在这里介绍https://spring.io/guides/gs/consuming-rest-android/ ,以便将Spring的RESTful Web Service支持添加到我的Android应用程序中。 这是顶级的build.gradleconfiguration: // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.1.0' } } allprojects { repositories { jcenter() } } 这是我的app/build.gradleconfiguration: apply plugin: 'com.android.application' android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.example" minSdkVersion 8 targetSdkVersion […]