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)
I know two reason that lead to this error :
Or
FAST SOLUTION (worth trying quickly before attempting more complex solutions):
run the command flutter clean
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With