无法确定任务':base:builder:sourcesJar'的依赖项

时间:2018-06-20 09:52:08

标签: android-studio android-gradle android-source

在构建Android Gradle Plugin source code时,总是出现以下错误!我使用 ./ gradlew assemble 命令。
我尝试检查“ tools / dx”目录,发现它不是gradle模块。

我正在网上搜索很长时间。但是没用。请提供帮助或尝试提供一些实现方法的建议。

FAILURE: Build failed with an exception.

* Where:
Build file '/home/zhangyang/aosp/gradle_3.1.2/tools/base/build-system/builder/build.gradle' line: 133

* What went wrong:
Could not determine the dependencies of task ':base:builder:jar'.
> Could not resolve all files for configuration ':base:builder:provided'.
 > Could not resolve project :dx.
     Required by:
        project :base:builder
        > Project :base:builder declares a dependency from configuration 'provided' to configuration 'default' which is not declared in the descriptor for project :dx.

* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 8s

0 个答案:

没有答案