【发布时间】:2018-05-20 00:12:39
【问题描述】:
我在这个项目中有一个带有子目录(项目)的应用程序,就像这样
- 我的申请
- 项目一
- 项目 b
- 项目c
等等……
我正在尝试使用此命令从根文件夹(我的应用程序)构建项目 b:
gradle :Project b:build
但我收到此错误消息:
* What went wrong: Project 'Project b' not found in root project 'MyApplication'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
但如果从 我的应用程序 我使用命令行执行此操作:
cd Project b
然后运行构建
gradle build
它构建成功。我做错了什么?
【问题讨论】:
-
请发布您的
settings.gradle文件。您应该避免在 Gradle 项目名称和一般文件路径中使用空格! -
@lu.koerfer 感谢您的帮助,但我找到了一种方法。检查我的答案。干杯
标签: gradle build build.gradle