首页 > 解决方案 > Gradle 无法使用与 Gradle 发行版“xxbin.zip”的连接来运行分阶段构建操作,根本原因

问题描述

我想在spring boot项目中使用Gradle工具API,但是思路没有错误。我打包成jar的时候报如下错误

exception [Request processing failed; nested exception is org.gradle.tooling.BuildException: Could not run phased build action using connection to Gradle distribution 'https://services.gradle.org/distributions/gradle-7.1-bin.zip'.] with root cause

java.lang.ClassNotFoundException: org.gradle.tooling.internal.consumer.connection.InternalPhasedActionAdapter

标签: javaspring-bootapigradle

解决方案


推荐阅读