I’m receiving the following error while running
flutter run on some projects, however, on other projects it works fine:
(base) Nusraths-MacBook-Pro:flutter_uber_clone rahama$ flutter emulators --launch Pixel_2_XL_API_28 (base) Nusraths-MacBook-Pro:flutter_uber_clone rahama$ flutter run Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering". Launching lib/main.dart on Android SDK built for x86 in debug mode... Initializing Gradle... 0.8s Resolving dependencies... 1.4s Running Gradle task 'assembly debug'... Running Gradle task 'assembly debug'... Done 9.3s Built build/app/outputs/apk/debug/app-debug.apk. Installing build/app/outputs/apk/app.apk... 1.9s Error: ADB exited with exit code 1 Performing Streamed Install ADB: failed to install /Users/rahama/development/flutter_uber_clone/build/app/outputs/apk/app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] Error launching the application on Android SDK built for x86.
It’s just the flutter demo project, I haven’t made any changes to it.
Flutter had a new update (I think last night), run
flutter upgrade in the terminal and it should work fine (at least that did it for me).
To update both the Flutter SDK and the packages that your app depends on, use the
flutter upgrade command from the root of your app (the same directory that contains the pubspec.yaml file)
Answered By – meetingthespam
Answer Checked By – Cary Denson (FlutterFixes Admin)