Task.leftShift(Closure)方法已被弃用,并计划在Gradle 5.0中删除. [英] The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0
问题描述
Task.leftShift(Closure)
方法已被弃用,并计划在Gradle 5.0中删除.请改用 Task.doLast(Action)
The Task.leftShift(Closure)
method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action)
instead
尝试构建android或运行时出现此错误.使用cordova-android 6.4.0离子-cli-4.3.1节点-8.11.1科尔多瓦-8.0.0gradle-4.6
I am getting this error when trying to build android or run. Using cordova-android 6.4.0 ionic-cli - 4.3.1 node - 8.11.1 cordova - 8.0.0 gradle - 4.6
我尝试将cordova-android降级为6.3.0、6.2.3将cordova-android升级到7.0.0、7.1.1但是其他事情在更改cordova-android版本时失败删除所有内容并从克隆和安装节点模块开始
I have tried downgrading cordova-android to 6.3.0 , 6.2.3 Upgrading cordova-android to 7.0.0, 7.1.1 But other things fails on changing cordova-android version Removed everything and started from cloning and installing node modules
推荐答案
对于在构建失败时遇到此问题的任何人.这是一个警告,而不是构建失败的原因.就我而言,它没有给出任何错误,所以我认为这是错误.
For anyone getting this while build fail. This is a warning and not the cause of build failure. In my case it wasn't giving any error So I assumed that this is the error.
这篇关于Task.leftShift(Closure)方法已被弃用,并计划在Gradle 5.0中删除.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!