큰 프로젝트를 하위 프로젝트로 분해하려고합니다. 대부분의 버그는 의존성 처리와 관련된 많은 버그에도 불구하고 작동하지만, 갈등을 극복하고 해결할 그래프를 얻을 수 없다.Android 종속성 충돌. androidDependencies 작업에서 제공하는 정보가 없습니다.
의존성 그래프를 얻으려면 abel을 사용해야합니다. 따라서 두 라이브러리가 서로 충돌하는 두 가지 종속성을 추적 할 수 있지만 검토를 위해 종속성 그래프가 인쇄되기 전에 명령이 중지됩니다.
어쨌든 디자인이나 어쨌든 gradle 또는 android plugin의 다른 버그인지 확신 할 수 없습니다.
이것은 내 작품입니다.
$ ./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
누구든지이 문제를 해결하기 위해 의존성 그래프를 얻는 방법을 말해 줄 수 있습니까?
'의존성'작업을 실행하십시오. – CommonsWare
resolutionStrategy.failOnVersionConflict() 옵션을 사용하면 오류가 발생하지만 종속성 정보를 표시하지 않아야한다고 생각합니다. –
@ CommonSWare 동일한 출력. 실패 옵션이 켜져 있으면 종속성 그래프를 사용할 수 없습니다. –