0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

Gradleキャッシュ削除でビルドエラーが解消した件

Posted at

環境

  • 言語 Kotlin
  • 開発環境 IntelliJ

事象

いつも通りgradleのビルドコマンド実行して動作確認していたところ、
突然ビルド失敗となり、以下エラーが出力された。

エラーログ
FAILURE: Build failed with an exception.
* What went wrong:
Task 'detekt▒@' not found in root project 'プロジェクト名'. Some candidates are: 'detekt'.

解決策

Gradleのキャッシュを一旦削除する。

  1. InteliJのファイルタブ→「キャッシュの破棄」を選択
  2. 該当項目を選択して、「破棄して再起動」を押下。
  3. Intelij再起動後、再度ビルド。
    → 無事ビルド成功
  4. BUILD SUCCESSFUL in 1m 7s
    

※これでも直らなければPC再起動してみましょう。

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?