简体   繁体   English

android.support 库必须使用完全相同的版本规范

[英]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.

相关问题 Android Studio - gradle 警告:所有 com.android.support 库必须使用完全相同的版本规范 - Android Studio - gradle warning: All com.android.support libraries must use the exact same version specification 所有 com.android.support 库必须使用与 27.1.1、26.1.0 版本完全相同的版本规范 - all com.android.support libraries must use the exact same version specification found versions 27.1.1, 26.1.0 所有com.android.support库都必须使用完全相同的版本规范找到的版本25.2.0、25.0.2 - All com.android.support libraries must use the exact same version specification Found versions 25.2.0, 25.0.2 所有com.android.support库都必须使用完全相同的版本规范。 在android studio 2.3中找到版本27.0.2、25.1.0、25.0.0 - All com.android.support libraries must use the exact same version specification . Found versions 27.0.2, 25.1.0, 25.0.0 in android studio 2.3 如何修复“所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)” - How to fix This “All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes)” 构建APK“库必须使用完全相同的版本规范”时出错 - Error building apk 'libraries must use the exact same version specification' Gradle:com.android.support:support-compat:25.3.1和com.android.support:animated-vector-drawable:24.0.0必须使用完全相同的版本 - Gradle: com.android.support:support-compat:25.3.1 and com.android.support:animated-vector-drawable:24.0.0 must use the exact same version Android Studio所有gms / firebase库必须使用完全相同的版本 - Android Studio all gms/firebase libaries must use the exact same version 所有库必须具有确切的版本 - All libraries must have the exact version Android Dependencies错误:库必须匹配相同版本 - Android Dependencies Error: Libraries must match the same version
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM