LoginSignup
4
5

More than 5 years have passed since last update.

IntelliJでのデバッグ実行時に'related gradle configuration was not found'エラー

Posted at

次に同じエラーに遭遇するときには忘れていると思うのでメモ。

発生条件も絞り込んでいない。

状況

  • Dropwizard 0.9.0 が出ていたので手元のあるプロジェクトを実験台に
  • 実験のタイミングで IDEIntelliJ IDEA 15 が出ていたので更新

エラーの内容

Dropwizard の新版を使用するように build.gradle を書き換えてデバッグ実行したところ次のようなエラーが発生し起動できず。

Error:Unable to make the module: XYZ, related gradle configuration was not found. Please, re-import the Gradle project and try again.

対応

  • View > Tool Windows > Gradle と選択して Gradle ツールを起動
  • ツールウィンドウの左上にある Refresh ボタンをクリック
  • リポジトリの同期が行われるようなのでしばらく待つ

refresh-gradle.png

ショートカットがあるような気がするが頻繁に行うことでもないので上記手順で妥協。

4
5
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
4
5