问题描述
AndroidStudio版本
错误
使用Android Studio调试功能时一直报:failed to get reply to handshake packet
$ adb shell cat /data/local/tmp/lldb-server | run-as
Starting LLDB server: /data/data/com.example/lldb/bin/start_lldb_server.sh /data/data/com.example/lldb unix-abstract /com.example.2986445.sock "lldb process:gdb-remote packets"
failed to get reply to handshake packet
解决方法
是因为没有root权限导致,运行如下命令即可解决。
adb root