android-studio - 无法确定任务 ':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
解决方案
推荐阅读
- java - Spring数据JPA保存全部或全部以及异常回滚
- python - 特金特。滚动条在画布上不起作用
- javascript - 禁用 Web 应用程序的 IOS Safari 中的捏缩放?
- python - Python中的table()等效函数(来自R)
- python-3.x - 使用 Python 模块 aiohttp 捕获 http 错误连接的正确方法是什么?
- javascript - 使用 firebase auth 方法检查错误的正确方法是什么?
- python-3.x - 使用 pandas cut 将三组分成两组
- python - 训练 mlp , val_accuracy 始终等于 0
- flutter - 只要我们需要准备好主屏幕,有没有办法保持启动画面?
- node.js - 使用 Nodejs 访问 ssh 命令