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.leftShift(Closure) 方法已被弃用,并计划在 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.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 中删除的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

How to target newer versions in .gitlab-ci.yml using auto devops (java 11 instead of 8 and Android 31 instead of 29)(如何在.gitlab-ci.yml中使用自动开发工具(Java 11而不是8,Android 31而不是29)瞄准较新的版本)
Android + coreLibraryDesugaring: which Java 11 APIs can I expect to work?(Android+core LibraryDesugering:我可以期待哪些Java 11API能够工作?)
How to render something in an if statement React Native(如何在If语句中呈现某些内容Reaction Native)
How can I sync two flatList scroll position in react native(如何在本机Reaction中同步两个平面列表滚动位置)
Using Firebase Firestore in offline only mode(在仅脱机模式下使用Firebase FiRestore)
Crash on Google Play Pre-Launch Report: java.lang.NoSuchMethodError(Google Play发布前崩溃报告:java.lang.NoSuchMethodError)