gpt4 book ai didi

java - 将现有 gradle 项目导入 IntelliJ IDEA 时出错

转载 作者:太空宇宙 更新时间:2023-11-04 10:20:00 24 4
gpt4 key购买 nike

我是 IntelliJ IDEA 的新手,我正在尝试在桌面上导入现有的 gradle 项目,我选择了导入项目图标,然后给出了我想要导入的项目的 build.gradle 文件的路径,但我收到此错误:

Plugin [id: 'com.gradle.build-scan', version: '1.9'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.gradle.build-scan:com.gradle.build-scan.gradle.plugin:1.9')

Searched in the following repositories: Gradle Central Plugin Repository

谁能帮忙解决这个问题吗?

最佳答案

确保您导入的 gradle 项目的版本兼容或相同版本(后者是最好的,因为它可以保持干净)。有些插件不向后兼容,因此您必须检查 gradle 的网站。

这里有一个关于 gradle 构建扫描插件的链接,可能会有所帮助:https://plugins.gradle.org/plugin/com.gradle.build-scan/1.12.1

祝你好运!

关于java - 将现有 gradle 项目导入 IntelliJ IDEA 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51285695/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com