同步期间发生错误:管道损坏-更新Android Studio 3.2、3.3之后 [英] Error during Sync: Broken pipe - after update Android Studio 3.2, 3.3
问题描述
在将Android Studio更新到3.2并使用同步gradle解决问题后
After update Android Studio to 3.2 and solve problem with sync gradle Gradle sync failed - after update Android Studio to 3.2 - i cant install apk -
事件日志:
Error during Sync: Broken pipe
Session 'app': Error Installing APK
有人解决了这个问题吗? 什么意思-管道破裂?以及为什么会发生?
Has anyone solved this problem? What mean - Broken pipe? And why it happen?
其他:仅在真实设备上发生,在模拟器上成功安装应用程序
Additional: it happen only on real device, on emulator install app successful
推荐答案
我解决了这个问题-就我而言,我在Mac上的活动监视器"中发现了几个 adb 进程,并杀死了所有进程,直到保持了 1 adb 的过程,它有所帮助.
I resolved this problem - in my case I found in Activity Monitor on my Mac several processes of adb and kill force all processes until stayed 1 adb processe and it helped.
编辑:尝试使用终端命令:
EDIT: try in terminal comands :
adb kill server
adb start server
这有助于重启您的adb,我必须一直在Android Studio =(
It help to restart your adb, I have to do it all the time on Android Studio =(
EDIT-2 :也是一种神奇的解决方法:
EDIT-2: also magic way to fix:
adb install -r -t apk_debug.apk
然后从android studio中"运行应用"
And then just "Run app" from android studio
这篇关于同步期间发生错误:管道损坏-更新Android Studio 3.2、3.3之后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!