简体   繁体   English

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

[英]Error when Importing an existing gradle project into IntelliJ IDEA

I am new to IntelliJ IDEA and i am trying to import an existing gradle project in my desktop , i have selected the import Project icon and then i gave the path to build.gradle file of the project i want to import , but i am getting this error :我是 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

Could any one help solving this problem ?任何人都可以帮助解决这个问题吗?

Make sure the version of the gradle project you're importing is either compatible or the same version (the latter being most preferable since it keeps things clean).确保您导入的 gradle 项目的版本兼容或相同(后者是最可取的,因为它可以保持干净)。 Some plugins are not backwards compatible so you'll have to check on gradle's website.某些插件不向后兼容,因此您必须查看 gradle 的网站。

Here's a link about gradle's build scan plugin that may help: https://plugins.gradle.org/plugin/com.gradle.build-scan/1.12.1这是关于 gradle 的构建扫描插件的链接,可能会有所帮助: https ://plugins.gradle.org/plugin/com.gradle.build-scan/1.12.1

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM