2017-07-04 22 views
0

Api 23(6.0)用にコンパイルされたアプリでは、build.gradleファイルに「com.android.supportのすべてのライブラリは、同じバージョン仕様 "であり、バージョン24.2.0 & 23.1.1が見つかりました。Google Dagger com.android.support:support-v4依存バージョン

マイcom.android.supportの依存関係はすべて23.1.1が、実行中に指定します。

gradlew -q dependencies app:dependencies --configuration compile 

は、これらはすべて24.2.0にアップグレードされていることを示しています。

この唯一の例外は、

com.android.support:support-v4:24.2.0 

gradlew依存報告書からの抜粋に依存しているように見える

com.google.dagger:dagger-android:2.9 

です:

+--- project :AppCommon 
| +--- com.android.support:appcompat-v7:23.1.1 
| | \--- com.android.support:support-v4:23.1.1 -> 24.2.0 
| |   +--- com.android.support:support-compat:24.2.0 
| |   | \--- com.android.support:support-annotations:24.2.0 
| |   +--- com.android.support:support-core-utils:24.2.0 
| |   | \--- com.android.support:support-compat:24.2.0 (*) 
| |   +--- com.android.support:support-media-compat:24.2.0 
| |   | \--- com.android.support:support-compat:24.2.0 (*) 
| |   +--- com.android.support:support-core-ui:24.2.0 
| |   | \--- com.android.support:support-compat:24.2.0 (*) 
| |   \--- com.android.support:support-fragment:24.2.0 
| |    +--- com.android.support:support-compat:24.2.0 (*) 
| |    +--- com.android.support:support-core-utils:24.2.0 (*) 
| |    +--- com.android.support:support-media-compat:24.2.0 (*) 
| |    \--- com.android.support:support-core-ui:24.2.0 (*) 
| +--- com.android.support:support-v4:23.1.1 -> 24.2.0 (*) 
| +--- com.android.support:design:23.1.1 
| | +--- com.android.support:appcompat-v7:23.1.1 (*) 
| | +--- com.android.support:recyclerview-v7:23.1.1 
| | | +--- com.android.support:support-annotations:23.1.1 -> 24.2.0 
| | | \--- com.android.support:support-v4:23.1.1 -> 24.2.0 (*) 
| | \--- com.android.support:support-v4:23.1.1 -> 24.2.0 (*) 




| \--- com.google.dagger:dagger-android:2.9 
|   +--- com.google.dagger:dagger:2.9 (*) 
|   +--- com.android.support:support-v4:24.2.0 (*) 
|   \--- com.android.support:support-annotations:24.2.0 

どのように私はこの依存関係の衝突を解決することができますapi 24とのコンパイルを変更すること(そして、私のcom.android.supp 24.2.0にortバージョン)? Gradleの更新1にSDKのバージョン、buildtoolバージョンとターゲットSDKのバージョンをコンパイル

classpath 'com.android.tools.build:gradle:2.3.3' 

変更に

答えて

0

更新のGradleプラグイン。

サンプルについて

compileSdkVersion 25 
buildToolsVersion "25.0.3" 
targetSdkVersion 25 

、あなたが

compile 'com.google.dagger:dagger:2.0.2' 
compile 'com.google.dagger:dagger-compiler:2.0.2' 

の代わり

として短剣の依存関係を使用する必要があります

compile 'com.android.support:support-compat:25.3.1' 
compile 'com.android.support:support-media-compat:25.3.1' 
compile 'com.android.support:support-core-ui:25.3.1' 
compile 'com.android.support:support-fragment:25.3.1' 
compile 'com.android.support:support-core-utils:25.3.1' 
compile 'com.android.support:design:25.3.1' 
compile 'com.android.support:appcompat-v7:25.3.1' 
compile 'com.android.support:support-v4:25.3.1' 
compile 'com.android.support:support-annotations:25.3.1' 
compile 'com.android.support:recyclerview-v7:25.3.1' 
compile 'com.google.dagger:dagger:2.0.2' 
compile 'com.google.dagger:dagger-compiler:2.0.2' 

builtoolversionの同じバージョンにGradleの依存関係を変更します

com.google.dagger:dagger-android:2.9 
com.google.dagger:dagger:2.9 
+0

ありがとうございますが、アプリの主なユーザーはAndroid 6.0になっていますので、私はAPI 23 – grantnz

関連する問題