gradle 问题1-Gradle快捷的任务定义<<被弃用

2020-12-23  本文已影响0人  纪梵东

当前的gradle版本

再项目build.gradle文件中增加

报错:

* What went wrong:

A problem occurred evaluating project ':demo'.

> Could not find method leftShift() for arguments [build_etrtnzca6wfzwtkcqiik5qudx$_run_cl

osure3@2254893d] on task ':demo:hello' of type org.gradle.api.DefaultTask.

* Try:

Run with --stacktrace option to get the stack trace. Run with --info or --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 2s

原因: 

<<在新版本中被弃用

上一篇下一篇

猜你喜欢

热点阅读