Android Studio 1.4 cannot launch debug server

后端 未结 2 1090
闹比i
闹比i 2021-01-07 04:04

I\'ve been working with AS 1.4 for quite a while and new native debugging feature is especially useful.

However native debugging does not work on my Samsung Galaxy N

相关标签:
2条回答
  • 2021-01-07 04:38

    I encounter Android Studio 3.5 similar issue with LLDB debugger - where "Starting LLDB server" process hangs forever, no debugging process is started and after solving this I encounter another issue. The issues with workarounds are explained in bug reports I submitted:

    1. Android Studio C++ Debugger startup silently ignores phone LLDB setup critical issues - workaround: ensure to use AVD emulator based on Google API and not Google Play (no root access)
    2. Android Studio C++ Debugger uses wrong paths on phone in LLDB setup procedure causing: failed to get reply to handshake packet - workaround: check which paths are wrong and create them on device like: mkdir -p .../bin
    0 讨论(0)
  • 2021-01-07 04:45

    See https://code.google.com/p/android/issues/detail?id=187003

    You need root access on your device, but then chmod 4750 /system/bin/run-as may solve the problem.

    If you don't have root access, you can modify your app, and start LLDB server with your package's identity, using Runtime.exec().

    0 讨论(0)
提交回复
热议问题