I can't debug android ndk app on Windows. It seems it is a new line problem on Windows
c:\Android\android-ndk-r9c\samples\hello-jni>..\..\ndk-build DUMP_APP_ABI
all
c:\Android\android-ndk-r9c\samples\hello-jni>
On Linux it is
hello-jni$ ../../ndk-build DUMP_APP_ABI
all
hello-jni$
There is no line after all
on Linux
I use unmodified hello-jni
from android-ndk-r9c
I also compared size of every unzipped file and they are original. It is clean unmodified NDK from Google. It is able to compile and do JavaDebug but not NativeDebug. (on Windows)
My questions is: What I am doing wrong? Does someone can confirm that unmodifed Android NDK r9c
(latest today) is able to do native debugging with Eclipse+NDKPlugin.
PS I forgot to mention that when I do Native Debug I get
[2013-11-18 14:38:50 - HelloJni] Unknown Application ABI:
[2013-11-18 14:38:50 - HelloJni]
[2013-11-18 14:38:50 - HelloJni] Unable to detect application ABI's
Just like in that question
My understanding is that the the issue is which make
is used by ndk-gdb
. See ndk-gdb on windows: when cygwin's make
is used, all well; if cygwin make
is not installed, ndk-gdb
fails. Here is the summary from Debugging Android NDK, Under Windows:
android:debuggable="true"
flag to <application
tag in AndroidManifest.xml
ndk-build
with NDK_DEBUG=1
ndk-gdb
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With