LoginSignup
0
0

Android エミュでビルドしたら Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed to override installation location] というエラーが出た

Posted at

これなに

Android エミュレーターでビルドしたら Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed to override installation location] なるエラーが出た。

エラーログ

ターミナルで出てきたエラーログは以下の通り。

% flutter run --device-id emulator-5554
Launching lib/main.dart on sdk gphone64 arm64 in debug mode...
Running Gradle task 'assembleDebug'...                            105.4s
✓  Built build/app/outputs/flutter-apk/app-debug.apk.
Installing build/app/outputs/flutter-apk/app-debug.apk...           9.6s
Error: ADB exited with exit code 1
Performing Streamed Install

adb: failed to install /Users/user/Github-su3/myapp/build/app/outputs/flutter-apk/app-debug.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE: Failed to override installation location]
Error launching application on sdk gphone64 arm64.

解決方法

エミュレーターを修了した上で、Android Studio の Device Manager から Wipe Data を実行すると解決した。(スクショは起動中になってますが、気にせず)
image.png

原因

ストレージスペースがなくなったことにある。
元々エミュレーターのストレージ量は極少なので、必要があれば数字をいじれば解決する。
ただ、多様なユーザーがいると思うので低スペックデバイスがどう振る舞うかを確認できるのであんまりイジらない方が良いと考えています。

image.png

image.png

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