2017-09-28 6 views
2

私はGoogleマップで作業しています。依存関係の下に追加しようとすると、このエラーが発生します。 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.0android.supportライブラリはまったく同じバージョン仕様を使用する必要があります

私はこのラインここcompile 'com.android.support:appcompat-v7:23.2.1'

でエラーを取得していますが、私の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' 

} 

私は、この行compile 'com.google.android.gms:play-services:9.0.0'をコメントした場合、それはcompile 'com.android.support:appcompat-v7:23.2.1' にエラーや赤のラインがないと正常に動作します誰も私がこの問題を解決するのに役立つことはできますか?

答えて

1

は、すべてのモジュールがちょうど

 compile 'com.google.android.gms:play-services-maps:9.0.0' 
+0

を追加プレイサービスを使用しないでくださいありがとうございました。あなたは私の一日を救った。 – Jacky

関連する問題

 関連する問題