在Android模拟器上运行flutter项目时,出现以下错误。它在iOS Simulator上运行良好,并且该项目在我的其他Mac上也运行良好(在Android和iOS Simulator上均可运行)
错误:ADB退出,退出代码为1。
adb:无法安装/Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk:在针对x86构建的Android SDK上启动应用程序时出错。
我已经清理了项目并重置了模拟器,但是没有运气。它只会影响我的Mac Book Pro Android版本。
Flutter医生也没有显示任何问题
[?] 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)
Run Code Online (Sandbox Code Playgroud)
对我来说,在我删除buildflutter 项目中的目录后,一切正常。构建应该有 app.apk 二进制文件。
| 归档时间: |
|
| 查看次数: |
4417 次 |
| 最近记录: |