亚行退出,退出代码为1 [英] ADB exited with exit code 1

查看:99
本文介绍了亚行退出,退出代码为1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Android模拟器上运行flutter项目时,出现以下错误.它可以在iOS Simulator上正常运行,并且该项目在我的其他Mac(在Android和iOS Simulator上均可运行)上也可以正常运行

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)

错误:ADB退出,退出代码为1执行流式安装

Error: ADB exited with exit code 1 Performing Streamed Install

adb:无法安装/Users/xxxx/Dropbox/Flutter/test_app/build/app/outputs/apk/app.apk:在针对x86构建的Android SDK上启动应用程序时出错.

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.

我已经清理了项目并重置了模拟器,但是没有运气.它只会影响我的Mac book pro android版本.

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

Flutter医生也没有出现问题

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 :

  • 也许您的设备/仿真器的存储空间已满 .尝试删除一些应用或类似于释放存储空间.

  • 无效的软件包名称 .例如在包装名称中使用大写字母.使用来更改包装名称
  • Invalid package name . for example using capital letter in package name. use this to change package name in flutter

这篇关于亚行退出,退出代码为1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆