当我运行/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
的有效替换内容?