简体   繁体   中英

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.

[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! null, SIGTERM [2:48:10 PM] [DAP] [Info] ==> {"seq":34,"type":"event","event":"terminated"

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

"

Solution: I installed a software called XDisplay and it looks like its installation was giving some conflict. After uninstalling it, it solved the problem.

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM