1
1

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 5 years have passed since last update.

【AndroidStudio】Failed to complete Gradle execution. Cause: Unknown

Last updated at Posted at 2016-04-13

バージョン

AndroidStudio 2.0
(バージョン関係なく起こる可能性があります)

事象

Clean/Rebuildができなくなる。

エラー内容

Event Logに下記メッセージが表示される。

Failed to complete Gradle execution. Cause: Unknown

対応方法

  • AndroidStudioを終了
  • ホームディレクトリ配下の「.gradle」フォルダを削除
  • AndroidStudioを再度起動、"Refleshing gradle~"的な処理が走るのでしばらく待つ
  • Build成功 :tada:

削除した「.gradle」フォルダは、AndroidStudio起動時に自動生成されます。

考えられる原因

AndroidStudioが前回終了時に正常終了しなかった可能性・・・。

その他

「.gradle」フォルダが1GB近くまで肥大化していたのですが、再生成して0.3GBまでサイズダウンしました。
使っていないプロジェクトのゴミファイルを削除するという意味で、良い機会だったかもしれません。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?