ephata @ Ephata MINGW64〜/ Documents / code
$ gradlew clean build -Pprofile=deployable --stacktrace
FAILURE: Build failed with an exception.
* What went wrong:
Task 'clean' not found in root project 'code'.
我该怎么办?
答案 0 :(得分:0)
首先请确保您正在从项目根文件夹中运行代码。
clean任务由基本插件引入。因此,您需要在build.gradle(app)中应用此插件,以获取清理任务和清理任务规则以清理特定任务输出:
apply plugin:'base'