错误:\---com.android.support:support compat:25.3.1“;
有人能帮我吗。 这是我在Android Studio中为某个应用程序编写的代码每次我尝试编译时,都会出现以下错误:错误:\---com.android.support:support compat:25.3.1“;,android,Android,有人能帮我吗。 这是我在Android Studio中为某个应用程序编写的代码每次我尝试编译时,都会出现以下错误: "Error:\--- com.android.support:support-compat:25.3.1" 这是我的密码 apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "23.0.3" defaultConfig {
"Error:\--- com.android.support:support-compat:25.3.1"
这是我的密码
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.googlemap.luco.lucomap"
minSdkVersion 23
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:3.2.65'
compile 'com.android.support:appcompat-v7:25.3.1'
}
尝试使用最新版本的PlayServices库。您使用的是非常旧的版本,即3.2.65。使用10.2.4如下所示
compile 'com.google.android.gms:play-services:10.2.4'
可以肯定的是,play services<8早已过时。如果您使用的是
targetSdkVersion 25
或compileSdkVersion 25
,那么您还应该使用API级别25可用的推荐buildToolsVersion