同步过程中出错:管道损坏 - 更新 Android Studio 3.2、3.3 后 [英] Error during Sync: Broken pipe - after update Android Studio 3.2, 3.3
问题描述
将 Android Studio 更新到 3.2 并解决同步 gradle 问题后 Gradle 同步失败 - 将 Android Studio 更新到 3.2 后 - 我无法安装 apk -
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.
编辑:在终端命令中尝试:
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屋!