【发布时间】:2019-10-15 10:50:59
【问题描述】:
在 Android 模拟器上运行我的颤振项目时出现以下错误。它在 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 Doctor 也没有显示任何问题
[✓] 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)
【问题讨论】:
-
你的包名是什么?