2016-09-15 4 views
0

大きなプロジェクトをサブプロジェクトに分割しようとしています。ほとんどの場合、それはグレードにかかわらず、依存関係の処理に関連する多くのバグにもかかわらず、私は解決するためのグラフを取得することはできません紛争を実行します。Androidの依存関係の競合。 androidDependenciesタスクによって提供された情報がありません

依存関係のグラフを取得するために、私はどのライブラリに2つの矛盾する依存関係があるかを調べることができますが、依存グラフが印刷される前に停止します。

これは、何らかの形でデザインされているのか、またはgradleやAndroidプラグインの別のバグか分かりません。

これは私の出力です。

$ ./gradlew androidDependencies 
Defining custom 'clean' task when using the standard Gradle lifecycle plugins has been deprecated and is scheduled to be removed in Gradle 3.0 
Incremental java compilation is an incubating feature. 

FAILURE: Build failed with an exception. 

* What went wrong: 
A problem occurred configuring project ':xlivestream'. 
> Could not resolve all dependencies for configuration ':xlivestream:_debugCompile'. 
    > A conflict was found between the following modules: 
     - com.android.support:support-annotations:23.4.0 
     - com.android.support:support-annotations:23.1.1 

* Try: 
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. 

BUILD FAILED 

この問題を解決するために、依存グラフをどのように取得する必要があるか教えていただけますか?

+0

'dependencies'タスクを実行します。 – CommonsWare

+0

解決策optionsStrategy.failOnVersionConflict()は失敗を引き起こしますが、私はそれが依存関係情報を表示するのに失敗してはならないと考えています。 –

+0

@CommonsWareと同じ出力です。失敗オプションをオンにすると、依存グラフが使用できなくなります。 –

答えて

0

エラーは、構成パラメータresolutionStrategy.failOnVersionConflict()が有効なために発生します。

しかし、gradleには、従属タスクが実行される前にビルドに失敗するため、従属タスクが依存関係をリストするのを妨げるバグがあるようです。

関連する問題