从命令行构建调试配置

时间:2016-11-29 04:00:11

标签: android gradle gradlew

当我运行/gradlew :android:tasks时,输出包括

Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.

(注意:我的应用程序模块名为android,而不是默认app。)

但是当我./gradlew :android:buildDebug时,我收到以下错误:

* What went wrong:
Task 'buildDebug' not found in project ':android'.

除了默认的调试和发布构建配置外,我还在build.gradle中声明了两种风格。如何在<ConfigurationName>给出的说明中确定/gradlew :android:tasks的有效替换内容?

0 个答案:

没有答案