Android Error:Failed to complete Gradle execution. Cause: The version of Gradle you are using (3.3)

版权声明:清晨不起早,误一天的事;幼年不勤学,误一生的事。 https://blog.csdn.net/Dr_abandon/article/details/79499944

Android 打包错误:
Error:Failed to complete Gradle execution.

Cause:
The version of Gradle you are using (3.3) does not support the forTasks() method on BuildActionExecuter. Support for this is available in Gradle 3.5 and all later versions.

这个错误是说我们的Gradle版本是3.3的 这里不支持,要换成3.5或3.5以后的版本。

我们需要在gradle里的gradle-wrapper.jar里改掉我们的gradle版本,如下图这里写图片描述

猜你喜欢

转载自blog.csdn.net/Dr_abandon/article/details/79499944