[英]android.support libraries must use the exact same version specification
I am working on Google Maps.我正在研究谷歌地图。 When I try to add below dependencies, i get this error.
当我尝试添加以下依赖项时,出现此错误。
android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.0. Examples include
android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.0. Examples include
com.android.support:animated-vector-drawable:23.2.1 and
com.android.support:mediarouter-v7:23.0.0 android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.0. Examples include
com.android.support:animated-vector-drawable:23.2.1 and
com.android.support:mediarouter-v7:23.0.0
I am getting error in this line compile 'com.android.support:appcompat-v7:23.2.1'
我在这一行中收到错误
compile 'com.android.support:appcompat-v7:23.2.1'
Here is my gradle:这是我的毕业证书:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25.0.0'
defaultConfig {
applicationId "gs.app.lugmah"
minSdkVersion 15
targetSdkVersion 23
versionCode 3
versionName "1.2"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
lintOptions {
xmlReport false
warningsAsErrors true
quiet false
showAll true
disable 'OldTargetApi', 'UnusedAttribute', 'LongLogTag'
}
}
dependencies {
testCompile 'junit:junit:4.12'
compile 'com.google.android.gms:play-services:9.0.0'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.android.support:design:23.2.1'
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.baoyz.swipemenulistview:library:1.3.0'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'com.github.vlonjatg:progress-activity:v1.0.3'
compile 'com.google.android.gms:play-services-auth:9.0.0'
compile 'com.facebook.android:facebook-android-sdk:4.11.0'
compile 'com.facebook.fresco:fresco:0.10.0'
compile 'com.github.nicolasjafelle:paginglistview:1.2'
}
If i comment this line compile 'com.google.android.gms:play-services:9.0.0'
then it works fine with no error or red line on compile 'com.android.support:appcompat-v7:23.2.1'
Can anyone help me to solve this?如果我评论这一行
compile 'com.google.android.gms:play-services:9.0.0'
那么它可以正常工作,在compile 'com.android.support:appcompat-v7:23.2.1'
上没有错误或红线谁能帮我解决这个问题?
不要使用播放服务所有模块只是添加
compile 'com.google.android.gms:play-services-maps:9.0.0'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.