Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradle跑不起来 #6

Open
versionwen opened this issue Oct 12, 2020 · 6 comments
Open

Gradle跑不起来 #6

versionwen opened this issue Oct 12, 2020 · 6 comments
Labels
question Further information is requested

Comments

@versionwen
Copy link

请问一下这是什么问题啊,肝不动了
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
Copy link
Owner

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

@Snailclimb
Copy link
Owner

请问一下这是什么问题啊,肝不动了
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 Snailclimb added the question Further information is requested label Oct 13, 2020
@versionwen
Copy link
Author

versionwen commented Oct 13, 2020

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

@hellohello-tom
Copy link
Contributor

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里面的东西 也都移除掉。

@lgaBug
Copy link

lgaBug commented Oct 22, 2020

请问一下这是什么问题啊,肝不动了
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
Copy link
Owner

请问一下这是什么问题啊,肝不动了
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之外的检查工具移除了,拉一下代码再看看呗!有问题的话,继续贴在这里就好。🤟

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants