Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error: ADB exited with exit code 1 Performing Streamed Install

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.

like image 475
Nusrath Avatar asked Jul 12 '19 05:07

Nusrath


People also ask

What is streamed install?

The legacy installation process required uploading the . apk file to /data/local/tmp folder first. The new process has the (default) option of using pipelines instead of the temporary file. This option is called Streamed Install.

Where can I get ADB?

adb is included in the Android SDK Platform-Tools package. You can download this package with the SDK Manager, which installs it at android_sdk /platform-tools/ .


2 Answers

Actually, the answer lies in the error message of your question:

[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.]

Your Emulator is running out of space, clear its cache:

  1. Click on AVD Manager
  2. Wipe Data (Your Target Device )

How To Wipe Your Device Data

You are set to go..

like image 177
Mohammad Anwer Moin Avatar answered Sep 17 '22 12:09

Mohammad Anwer Moin


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

Docs: 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)

https://flutter.dev/docs/development/tools/sdk/upgrading

like image 24
meetingthespam Avatar answered Sep 20 '22 12:09

meetingthespam