📘

Flutterの新規プロジェクトのエミュレーターを立ち上げるとエラーとなる

2022/06/04に公開

環境:Windows 10 Home 64bit

Flutterの新しいプロジェクトを作成し、エミュレーターを起動しようとしたところ以下のようなエラーが出ました。

WARNING | Another emualtor is still running, wait for a sec... WARNING | Another emualtor is still running, wait for a sec... WARNING | Another emualtor is still running, wait for a sec... ERROR | Another emulator instance is running. Please close it or run all emulators with -read-only flag. INFO | Android emulator version 31.2.10.0 (build_id 8420304) (CL:N/A)

別のエミュレーターが起動中との内容ですが、別プロジェクトのエミュレーターは停止させております。

解決策

"C:\Users\user_name\.android\avd\Pixel_4a_API_30.avd\multiinstance.lock"を削除することで解決しました。

※「qemu-system-x84_64によってファイルが開かれているため、操作を完了できません。」と表示され、ファイルを削除できない場合はPCを再起動すると削除できるようになります。

Discussion