m***@gmail.com
2018-03-31 22:20:48 UTC
I use Android Studio 3.1 to run a JNI Hello program on *Android Phone
(Samsung A5)* then *Native, Dual and Java debugger work normally*.
But when I run the same program on *Android POS (PAX A920)*, *only the java
debugger is working normally*, *but Native/Dual debugger does not work* *and
I get error as follows*. How to resolve this problem?
*Debug Message:*
*03/29 15:02:55: Launching app $ adb install-multiple -r -t
E:\Hello\app\build\intermediates\split-apk\debug\dep\dependencies.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_0.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_1.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_2.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_3.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_4.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_5.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_6.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_7.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_8.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_9.apk
E:\Hello\app\build\intermediates\instant-run-apk\debug\app-debug.apk Split
APKs installed $ adb shell am start -n
"id.ctech.hello/id.ctech.hello.MainActivity" -a android.intent.action.MAIN
-c android.intent.category.LAUNCHER -D Waiting for application to come
online: id.ctech.hello.test | id.ctech.hello Connecting to id.ctech.hello
Now Launching Native Debug Session $ adb shell cat
/data/local/tmp/lldb-server | run-as id.ctech.hello sh -c 'cat >
/data/data/id.ctech.hello/lldb/bin/lldb-server && chmod 700
/data/data/id.ctech.hello/lldb/bin/lldb-server' $ adb shell cat
/data/local/tmp/start_lldb_server.sh | run-as id.ctech.hello sh -c 'cat >
/data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh && chmod 700
/data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh' Starting LLDB
server: /data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh
/data/data/id.ctech.hello/lldb unix-abstract /id.ctech.hello-0
platform-1522310589474.sock "lldb process:gdb-remote packets" failed to get
reply to handshake packet (ERROR IN HERE) Process finished with exit code 0*
*IDE Fatal Error Log:*
*failed to get reply to handshake packet
com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriverException:
failed to get reply to handshake packet at
com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$ThrowIfNotValid.throwIfNeeded(LLDBDriver.java:135)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.connectPlatform(AndroidLLDBDriver.java:344)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.commonLoad(AndroidLLDBDriver.java:145)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.loadForAttach(AndroidLLDBDriver.java:248)
at
com.android.tools.ndk.run.AndroidNativeAppDebugProcess.prepareTarget(AndroidNativeAppDebugProcess.java:101)
at
com.android.tools.ndk.run.AndroidNativeDebugProcessImpl.doLoadTarget(AndroidNativeDebugProcessImpl.java:123)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess.lambda$start$0(CidrDebugProcess.java:314)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:703)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:693)
at
com.intellij.util.concurrency.QueueProcessor.lambda$null$0(QueueProcessor.java:93)
at
com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at
com.intellij.util.concurrency.QueueProcessor.lambda$wrappingProcessor$1(QueueProcessor.java:93)
at
com.intellij.util.concurrency.QueueProcessor.lambda$null$3(QueueProcessor.java:226)
at
com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at
com.intellij.util.concurrency.QueueProcessor.lambda$startProcessing$4(QueueProcessor.java:226)
at
com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)*
(Samsung A5)* then *Native, Dual and Java debugger work normally*.
But when I run the same program on *Android POS (PAX A920)*, *only the java
debugger is working normally*, *but Native/Dual debugger does not work* *and
I get error as follows*. How to resolve this problem?
*Debug Message:*
*03/29 15:02:55: Launching app $ adb install-multiple -r -t
E:\Hello\app\build\intermediates\split-apk\debug\dep\dependencies.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_0.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_1.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_2.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_3.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_4.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_5.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_6.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_7.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_8.apk
E:\Hello\app\build\intermediates\split-apk\debug\slices\slice_9.apk
E:\Hello\app\build\intermediates\instant-run-apk\debug\app-debug.apk Split
APKs installed $ adb shell am start -n
"id.ctech.hello/id.ctech.hello.MainActivity" -a android.intent.action.MAIN
-c android.intent.category.LAUNCHER -D Waiting for application to come
online: id.ctech.hello.test | id.ctech.hello Connecting to id.ctech.hello
Now Launching Native Debug Session $ adb shell cat
/data/local/tmp/lldb-server | run-as id.ctech.hello sh -c 'cat >
/data/data/id.ctech.hello/lldb/bin/lldb-server && chmod 700
/data/data/id.ctech.hello/lldb/bin/lldb-server' $ adb shell cat
/data/local/tmp/start_lldb_server.sh | run-as id.ctech.hello sh -c 'cat >
/data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh && chmod 700
/data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh' Starting LLDB
server: /data/data/id.ctech.hello/lldb/bin/start_lldb_server.sh
/data/data/id.ctech.hello/lldb unix-abstract /id.ctech.hello-0
platform-1522310589474.sock "lldb process:gdb-remote packets" failed to get
reply to handshake packet (ERROR IN HERE) Process finished with exit code 0*
*IDE Fatal Error Log:*
*failed to get reply to handshake packet
com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriverException:
failed to get reply to handshake packet at
com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver$ThrowIfNotValid.throwIfNeeded(LLDBDriver.java:135)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.connectPlatform(AndroidLLDBDriver.java:344)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.commonLoad(AndroidLLDBDriver.java:145)
at
com.android.tools.ndk.run.lldb.AndroidLLDBDriver.loadForAttach(AndroidLLDBDriver.java:248)
at
com.android.tools.ndk.run.AndroidNativeAppDebugProcess.prepareTarget(AndroidNativeAppDebugProcess.java:101)
at
com.android.tools.ndk.run.AndroidNativeDebugProcessImpl.doLoadTarget(AndroidNativeDebugProcessImpl.java:123)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess.lambda$start$0(CidrDebugProcess.java:314)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:703)
at
com.jetbrains.cidr.execution.debugger.CidrDebugProcess$MyCommandProcessor.consume(CidrDebugProcess.java:693)
at
com.intellij.util.concurrency.QueueProcessor.lambda$null$0(QueueProcessor.java:93)
at
com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at
com.intellij.util.concurrency.QueueProcessor.lambda$wrappingProcessor$1(QueueProcessor.java:93)
at
com.intellij.util.concurrency.QueueProcessor.lambda$null$3(QueueProcessor.java:226)
at
com.intellij.util.concurrency.QueueProcessor.runSafely(QueueProcessor.java:246)
at
com.intellij.util.concurrency.QueueProcessor.lambda$startProcessing$4(QueueProcessor.java:226)
at
com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:315)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)*
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/98278237-f935-45ca-b472-908b7781bd4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-ndk+***@googlegroups.com.
To post to this group, send email to android-***@googlegroups.com.
Visit this group at https://groups.google.com/group/android-ndk.
To view this discussion on the web visit https://groups.google.com/d/msgid/android-ndk/98278237-f935-45ca-b472-908b7781bd4b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.