问题描述
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.0毕业 - 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 中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!