我已经使用AS 1.4工作了一段时间,新的本地调试功能特别有用。
但是本地调试在我的三星Galaxy Note 10.1 2014 (Android 4.4)上不起作用。当我尝试启动本地调试会话时,会看到以下消息:
Starting LLDB server: run-as com.example.hellojni /data/data/com.example.hellojni/lldb/bin/start_lldb_server.sh /data/data/com.example.hellojni/lldb /data/data/com.example.hellojni/lldb/tmp/platform.port1445003703353 "lldb process:gdb-remote packets"
Error while launching debug server on device: com.android.tools.ndk.run.DebuggerContext$StartServerException: java.lang.IllegalStateException:
Failed to read platform port /data/data/com.example.hellojni/lldb/tmp/platform.port1445003703353
我还发现了一个开放问题:https://code.google.com/p/android/issues/detail?can=2&start=0&num=100&q=&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&groupby=&sort=&id=185061。
有办法解决这个问题吗?
-rwsr-x--- root shell 9500 2015-03-25 21:42 run-as
,但现在我收到完全相同的错误消息。 - Aleksei PetrenkoRuntime.exec()
方法的细节吗? - Aleksei Petrenkosetxattr /system/bin/run-as security.capability
吗? - Alex Cohn