LoginSignup
5
1

More than 3 years have passed since last update.

Gradleで発生した Plugin was not found in any of the following sources: の備忘

Last updated at Posted at 2020-04-03

はじめに

困っている方がいたので、今後の備忘として書きます。

こんな感じのエラーが出ました

Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Build file '/tmp/build/xxxx/xxxx/build.gradle' line: 13

* What went wrong:
Plugin [id: 'org.springframework.boot', version: '2.1.7.RELEASE'] 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 'org.springframework.boot:org.springframework.boot.gradle.plugin:2.1.7.RELEASE')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3m 9s

解決

  • Intellij IDEA の Toggle Offline Mode がONになっていたので、OFFにしました。

BEFORE

before.PNG

AFTER

after.PNG

メモ

  • 私用Macでも同じ現象が起こったことがあったが、そのときはMacの再起動で直った
    • IntelliJ IDEA の Chack for Updates... がそもそも Connection failed だった
    • なぜ直ったかは不明
  • Dockerでも同じようなエラーが出たことがあるが、どうやって解決したか忘れたので思い出したら書く…
5
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1