[Flutter]NoSuchFileException: build/app/intermediates/external_file_lib_dex_archives/debug/outの対処法(Execution failed for task ‘:app:mergeExtDexDebug’))

このページには広告が含まれる場合があります。

 

これは、FlutterのプロジェクトをAndroidの実機あるいはエミュレーターで回そうとした際に起こる可能性のあるエラーなのですが、こんな感じの意味不明なエラーが出てしまう場合があります。

java.nio.file.NoSuchFileException: /Users/telulullc/FlutterProjects/00InLesson/00TG/clock_test/build/app/intermediates/external_file_lib_dex_archives/debug/out
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
at・・・・

これの下の方に行くと、こんな感じ(めっさ長い、、、)。

* What went wrong:
Execution failed for task ‘:app:mergeExtDexDebug’.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> java.nio.file.NoSuchFileException: /Users/telulullc/FlutterProjects/00InLesson/00TG/clock_test/build/app/intermediates/external_file_lib_dex_archives/debug/out

* 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.

この意味不明なエラーが出た場合は、

  1. プロジェクトの「android」フォルダ内にある「.gradle(隠しファイル)」を削除
  2. Terminalから「flutter clean」

すると解消します。

(詳しくは、以下の動画で解説していますので、よろしければご覧下さい)

こんな記事も読まれています

今すぐ無料お試しキットを受け取る

はじめての方へ


みんプロ式プログラミング講座体系・ラインナップ
みんプロ式プログラミング講座受講の流れ(割引特典利用方法)
サイトマップ(みんプロHPコンテンツ一覧)
運営会社概要

みんプロ作成アプリ





TOP