首页 > 解决方案 > 无法确定任务 ':base:builder:sourcesJar' 的依赖关系

问题描述

在构建Android Gradle Plugin 源代码时,总是出现以下错误!我使用./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

标签: android-studioandroid-gradle-pluginandroid-source

解决方案


推荐阅读