Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB exited with exit code 1

Tags:

I'm getting the following error when running my flutter project on Android Emulator. It works fine on iOS Simulator and the project is also fine on my other Mac (runs on both Android and iOS Simulator)

Error: ADB exited with exit code 1 Performing Streamed Install

adb: failed to install /Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk: Error launching application on Android SDK built for x86.

I've cleaned my project and reset my emulator but no luck. It only affects my mac book pro android build.

Flutter doctor also shows no issues

[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale en-CA)  [✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3) [!] iOS toolchain - develop for iOS devices (Xcode 10.2.1)     ✗ Verify that all connected devices have been paired with this computer in Xcode.       If all devices have been paired, libimobiledevice and ideviceinstaller may require updating.       To update with Brew, run:         brew update         brew uninstall --ignore-dependencies libimobiledevice         brew uninstall --ignore-dependencies usbmuxd         brew install --HEAD usbmuxd         brew unlink usbmuxd         brew link usbmuxd         brew install --HEAD libimobiledevice         brew install ideviceinstaller [✓] Android Studio (version 3.4) [✓] Connected device (2 available) 
like image 602
jon_na_fun Avatar asked May 29 '19 19:05

jon_na_fun


2 Answers

I know two reason that lead to this error :

  • Maybe your device/emulator's storage is full. Try deleting some apps or similar to free up storage.

Or

  • Invalid package name . for example using capital letter in package name. use this to change package name in flutter
like image 186
Kapta Avatar answered Oct 16 '22 11:10

Kapta


FAST SOLUTION (worth trying quickly before attempting more complex solutions):

run the command flutter clean

like image 42
Matthew Trent Avatar answered Oct 16 '22 10:10

Matthew Trent