<application android:icon="@drawable/icon" android:label="@string/
app_name" android:debuggable="true">
$ /cygdrive/c/android-sdk-windows/android-ndk-r4/ndk-gdb --adb=/
cygdriv
e/c/android-sdk-windows/tools/adb.exe
ERROR: Non-debuggable application installed on the target device.
Please re-install the debuggable version !
What could I be missing?
Thanks,
Ranjit
--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
So I tried implementing the ndk/samples/bitmap-plasma project as
well. (Eclipse, ADT, gdb)
While the two-libs project and the hello-jni project work fine with
gdb, the bitmap-plasma project does not.
It is the same result as for my project in that after running ndk-
build, the resulting .apk does not "auto" load the gdbserver onto the
emulator when you run the application. As before, I also see that
there is no creation of the files "app_process" or "gdbserver" into
the following directories: <project root dir>/bin/ndk/local/armeabi/
(or the coexistent .../armeabi-v7a/ directory)...
The process I followed:
Before building (ndk-build) verified:
that the Android.mk contains: LOCAL_CFLAGS := -g
the AndroidManifest.xml is set to debuggable (this is the default)
Then build.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Hi,
1) Unfortunately, I was already building to Android 2.2 (8), and
already had android:debuggable=true in my manifest.
So I tried deleting the existing <bitmap-plasma-sample-project>.apk
(which was causing my "non-debuggable application" issue) , and
rebuilding (ndk-build) fresh, and lo-and-behold that seemed to work.
The Bitmap-Plasma sample will now allow connecting the gdbserver. I
think there may be some issue where the ndk-build doesn't properly
update an existing "non-debuggable" instance and make it debuggable,
unless you manually delete the apk first. (That seems a bit odd
though....????)
2) When you say "For the record, you don't need to add this, this is
already done by the NDK for you... ", what is the "this" that you are
referring to?
Adding the "LOCAL_CFLAGS := -g " to the Android.mk file?
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
Hi,
1) Unfortunately, I was already building to Android 2.2 (8), and
already had android:debuggable=true in my manifest.
So I tried deleting the existing <bitmap-plasma-sample-project>.apk
(which was causing my "non-debuggable application" issue) , and
rebuilding (ndk-build) fresh, and lo-and-behold that seemed to work.
The Bitmap-Plasma sample will now allow connecting the gdbserver. I
think there may be some issue where the ndk-build doesn't properly
update an existing "non-debuggable" instance and make it debuggable,
unless you manually delete the apk first. (That seems a bit odd
though....????)
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
--
ndk-gdb requires 2.2, period.Now, it is possible to debug native code without ndk-gdb on other systems, if there is a gdbserver already installed (e.g. SDK system images) or if you can copy one there (e.g. rooted system). However, this is quite tedious and prone to error.