当我尝试构建项目时,我收到此错误(在部署到 heroku 时)。这是我的第一个 Spring boot 应用程序,老实说我找不到这个问题的任何解决方案。我的Jdk是v.17
remote: A problem occurred configuring root project 'demo'.
remote: > Could not resolve all files for configuration ':classpath'.
remote: > Could not resolve org.springframework.boot:spring-boot-gradle-plugin:3.0.1.
remote: Required by:
remote: project : > org.springframework.boot:org.springframework.boot.gradle.plugin:3.0.1
remote: > No matching variant of org.springframework.boot:spring-boot-gradle-plugin:3.0.1 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '7.6' but: …Run Code Online (Sandbox Code Playgroud)