Task.leftShift(Closure) 方法已被弃用,并计划在 Gradle 5.0 中删除

2024-04-13移动开发问题
3

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

The End

相关推荐

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9

如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?
How can i use MYSQL database connection in iphone application useing cocos2d?(如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?)...
2024-08-12 移动开发问题
5

在 cocos2d 中平滑拖动一个 Sprite - iPhone
Smoothly drag a Sprite in cocos2d - iPhone(在 cocos2d 中平滑拖动一个 Sprite - iPhone)...
2024-08-12 移动开发问题
10

CCScrollView 滚动和触摸事件永远不会触发
CCScrollView scroll and touch events never firing(CCScrollView 滚动和触摸事件永远不会触发)...
2024-08-12 移动开发问题
1

使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘
removing jagged edges of my ropes using antialiasing of OpenGLES(使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘)...
2024-08-12 移动开发问题
34

cocos2d 在场景之间移动
cocos2d Moving between scene(cocos2d 在场景之间移动)...
2024-08-12 移动开发问题
2