在 Android Emulator 上运行我的颤振项目时出现以下错误。它在 iOS 模拟器上运行良好,该项目在我的其他 Mac 上也很好(在 Android 和 iOS 模拟器上运行)
错误:ADB 以退出代码 1 退出正在执行流式安装
adb:无法安装 /Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk:在为 x86 构建的 Android SDK 上启动应用程序时出错。
我已经清理了我的项目并重置了我的模拟器,但没有运气。它只影响我的 mac book pro android build。
颤振医生也没有显示任何问题
[✓] 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)
原文由 jon_na_fun 发布,翻译遵循 CC BY-SA 4.0 许可协议
它通常发生在模拟器上。最简单的方法是去 Andorid Studio > ADB devices。单击模拟器名称右侧的下拉箭头,然后选择擦除数据。