jsoncat icon indicating copy to clipboard operation
jsoncat copied to clipboard

Gradle跑不起来

Open versionwen opened this issue 4 years ago • 6 comments

请问一下这是什么问题啊,肝不动了 Plugin [id: 'com.github.spotbugs', version: '4.3.0'] 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.github.spotbugs:com.github.spotbugs.gradle.plugin:4.3.0') Searched in the following repositories: Gradle Central Plugin Repository

versionwen avatar Oct 12 '20 11:10 versionwen

老哥 我在Mac试了没问题,Windows下可能会有一些小坑,但是把项目跑起来应该没问题。 你把 build.gradle的我圈出来的这部分内容删除掉再启动项目试试。 image

Snailclimb avatar Oct 12 '20 12:10 Snailclimb

请问一下这是什么问题啊,肝不动了 Plugin [id: 'com.github.spotbugs', version: '4.3.0'] 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.github.spotbugs:com.github.spotbugs.gradle.plugin:4.3.0') Searched in the following repositories: Gradle Central Plugin Repository

老哥 解决你的问题么?

Snailclimb avatar Oct 13 '20 02:10 Snailclimb

呜呜呜,好像还是一样的,报错都一样,gradle也升级到了6.6.1的,build and run using,这也改了

versionwen avatar Oct 13 '20 06:10 versionwen

apply from: rootProject.file("gradle/git-hooks.gradle") apply from: rootProject.file("gradle/checkstyle.gradle") apply from: rootProject.file("gradle/pmd.gradle") apply from: rootProject.file("gradle/spotbugs.gradle") 把这些从build.gradle移除掉,吧.git/hooks里面的东西 也都移除掉。

hellohello-tom avatar Oct 13 '20 07:10 hellohello-tom

请问一下这是什么问题啊,肝不动了 Plugin [id: 'com.github.spotbugs', version: '4.3.0'] 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.github.spotbugs:com.github.spotbugs.gradle.plugin:4.3.0') Searched in the following repositories: Gradle Central Plugin Repository

我也遇到了一样的问题。去掉上面截图的部分也还是不行

lgaBug avatar Oct 22 '20 17:10 lgaBug

请问一下这是什么问题啊,肝不动了 Plugin [id: 'com.github.spotbugs', version: '4.3.0'] 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.github.spotbugs:com.github.spotbugs.gradle.plugin:4.3.0') Searched in the following repositories: Gradle Central Plugin Repository

我也遇到了一样的问题。去掉上面截图的部分也还是不行

我已经把checkstyle之外的检查工具移除了,拉一下代码再看看呗!有问题的话,继续贴在这里就好。🤟

Snailclimb avatar Oct 23 '20 00:10 Snailclimb