简体   繁体   English

错误:ADB 退出并退出代码 1 使用 Flutter 执行流式安装,使用 M1 执行 Mac Big Sur

[英]Error: ADB exited with exit code 1 Performing Streamed Install with Flutter and Mac Big Sur with M1

I am getting the following error every time I try to run my app on a real device.每次尝试在真实设备上运行我的应用程序时,我都会收到以下错误。 Other people can run the same project using the same phone in another computer, so I think the problem is my computer.其他人可以在另一台计算机上使用同一部手机运行相同的项目,所以我认为问题出在我的计算机上。

error<\/a>错误<\/a>

I tried to update the Android Studio and it worked, but then in the next day the same problem started again... So strange!我尝试更新 Android Studio 并成功了,但第二天同样的问题又开始了……太奇怪了!

Here is my Flutter doctor:这是我的 Flutter 医生:

flutter doctor -v<\/a>颤振医生-v<\/a>

I also have this log:我也有这个日志:

adb: failed to install \/Users\/matheus\/flutter\/becare\/develop2\/becare_app\/build\/app\/outputs\/flutter-apk\/app.apk: [2:48:10 PM] [DAP] [Info] ==> {"seq":28,"type":"event","event":"dart.log","body":{"message":"Error launching application on Mi 9 SE.\\n","severity":2,"category":8}} [2:48:10 PM] [DAP] [Info] ==> {"seq":29,"type":"event","event":"output","body":{"category":"stderr","output":"Error launching application on Mi 9 SE.\\n"}} [2:48:10 PM] [FlutterRun] [Error] [Flutter] Error launching application on Mi 9 SE. adb: 未能安装 \/Users\/matheus\/flutter\/becare\/develop2\/becare_app\/build\/app\/outputs\/flutter-apk\/app.apk: [2:48:10 PM] [DAP] [Info] ==> { "seq":28,"type":"event","event":"dart.log","body":{"message":"在小米 9 SE 上启动应用程序时出错。\\n","severity": 2,"category":8}} [2:48:10 PM] [DAP] [Info] ==> {"seq":29,"type":"event","event":"output"," body":{"category":"stderr","output":"在 Mi 9 SE 上启动应用程序时出错。\\n"}} [2:48:10 PM] [FlutterRun] [Error] [Flutter] 启动应用程序时出错在小米 9 SE 上。 [2:48:10 PM] [DAP] [Info] ==> {"seq":30,"type":"event","event":"dart.log","body":{"message":"<== [{"event":"app.stop","params":{"appId":"3e89b0c8-b784-4d8e-9f3e-bc3eceed14cb"}}]\\r\\n","severity":0,"category":8}} [2:48:10 PM] [DAP] [Info] ==> {"seq":31,"type":"event","event":"dart.log","body":{"message":"Process terminated! null, SIGTERM","severity":0,"category":8}} [2:48:10 PM] [DAP] [Info] ==> {"seq":32,"type":"event","event":"dart.log","body":{"message":"Process exited (sigterm)","severity":0,"category":10}} [2:48:10 PM] [DAP] [Info] ==> {"seq":33,"type":"event","event":"output","body":{"category":"console","output":"Exited (sigterm)\\n"}} [2:48:10 PM] [FlutterRun] [Info] [Flutter] <== [{"event":"app.stop","params":{"appId":"3e89b0c8-b784-4d8e-9f3e-bc3eceed14cb"}}] [2:48:10 PM] [FlutterRun] [Info] [Flutter] Process terminated! [2:48:10 PM] [DAP] [信息] ==> {"seq":30,"type":"event","event":"dart.log","body":{"message" :"<== [{"event":"app.stop","params":{"appId":"3e89b0c8-b784-4d8e-9f3e-bc3eceed14cb"}}]\\r\\n","severity": 0,"category":8}} [2:48:10 PM] [DAP] [Info] ==> {"seq":31,"type":"event","event":"dart.log" ,"body":{"message":"进程终止!null, SIGTERM","severity":0,"category":8}} [2:48:10 PM] [DAP] [Info] ==> { "seq":32,"type":"event","event":"dart.log","body":{"message":"进程退出 (sigterm)","severity":0,"category" :10}} [2:48:10 PM] [DAP] [信息] ==> {"seq":33,"type":"event","event":"output","body":{" category":"console","output":"Exited (sigterm)\\n"}} [2:48:10 PM] [FlutterRun] [Info] [Flutter] <== [{"event":"app. stop","params":{"appId":"3e89b0c8-b784-4d8e-9f3e-bc3eceed14cb"}}] [2:48:10 PM] [FlutterRun] [Info] [Flutter] 进程终止! null, SIGTERM [2:48:10 PM] [DAP] [Info] ==> {"seq":34,"type":"event","event":"terminated"空,SIGTERM [2:48:10 PM] [DAP] [Info] ==> {"seq":34,"type":"event","event":"terminated"

<\/blockquote>"

Remove the existing app from the phone and run again.从手机中删除现有应用程序并再次运行。 If it still doesn't work And disable debugging in the developer settings and enable it to make sure ADB has access to the device如果它仍然不起作用并在开发人员设置中禁用调试并启用它以确保 ADB 可以访问设备

"

Solution: I installed a software called XDisplay and it looks like its installation was giving some conflict.解决方案:我安装了一个名为 XDisplay 的软件,它的安装似乎产生了一些冲突。 After uninstalling it, it solved the problem.卸载后,问题就解决了。

"

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter ADB 错误:ADB 以退出代码 1 退出执行流式安装 - Flutter ADB error: ADB exited with exit code 1 performing streamed install 错误:ADB 退出,退出代码为 1 正在执行流式安装 - Error: ADB exited with exit code 1 Performing Streamed Install 错误:ADB exited with exit code 1 Performing Streamed Install 和与运行 abd 相关的错误 - Error: ADB exited with exit code 1 Performing Streamed Install and error related to running abd 调试控制台:错误:ADB exited with exit code 1 Performing Streamed Install... F - Debug Console: Error: ADB exited with exit code 1 Performing Streamed Install... F 错误:ADB 退出,退出代码为 1 执行流式安装 adb:安装失败...\app.apk:失败 [INSTALL_FAILED_INSUFFICIENT_STORAGE] - Error: ADB exited with exit code 1 Performing Streamed Install adb: failed to install ...\app.apk : Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE] ADB 以退出代码 1 退出 - ADB exited with exit code 1 错误:ADB 以退出代码 1 退出失败 [INSTALL_FAILED_VERSION_DOWNGRADE] - Error: ADB exited with exit code 1 Failure [INSTALL_FAILED_VERSION_DOWNGRADE] 错误:ADB 以退出代码 1 退出 启动应用程序时出错 - Error: ADB exited with exit code 1 Error launching application 什么是“执行流式安装” - What is, “performing streamed install” 执行流式安装 adb:无法安装 [INSTALL_FAILED_INSUFFICIENT_STORAGE] - Performing Streamed Install adb: failed to install [INSTALL_FAILED_INSUFFICIENT_STORAGE]
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM