慵懒的树獭 2014-08-22 09:02 采纳率: 0%
浏览 1719

Eclipse中的NDKr8,调试jni代码

按照http://tools.android.com/recent/usingthendkplugin配置好NDK的调试环境后,也可以对CPP代码进行提示编写了,但在进行调试的时候,点击Debug as android Native application后,报如下错误?请问各位大神,什么情况啊?怎么解决?

(no debugging symbols found)
Error while mapping shared library sections:/system/bin/linker: No such file or directory.
Error while mapping shared library sections:libstdc++.so: No such file or directory.
Error while mapping shared library sections:libm.so: No such file or directory.
Error while mapping shared library sections:
liblog.so: No such file or directory.
Error while mapping shared library sections:
libcutils.so: No such file or directory.
Error while mapping shared library sections:
libz.so: No such file or directory.
Error while mapping shared library sections:
libutils.so: No such file or directory.
Error while mapping shared library sections:
libbinder.so: No such file or directory.
Error while mapping shared library sections:
libexpat.so: No such file or directory.
Error while mapping shared library sections:
libcrypto.so: No such file or directory.
Error while mapping shared library sections:
libgabi++.so: No such file or directory.
Error while mapping shared library sections:
libicuuc.so: No such file or directory.
Error while mapping shared library sections:
libicui18n.so: No such file or directory.
Error while mapping shared library sections:
libssl.so: No such file or directory.
Error while mapping shared library sections:
libstlport.so: No such file or directory.
Error while mapping shared library sections:
libnativehelper.so: No such file or directory.
Error while mapping shared library sections:
libnetutils.so: No such file or directory.
Error while mapping shared library sections:
libGLESv2_dbg.so: No such file or directory.
Error while mapping shared library sections:
libEGL.so: No such file or directory.
Error while mapping shared library sections:
libwpa_client.so: No such file or directory.
Error while mapping shared library sections:
libhardware_legacy.so: No such file or directory.
Error while mapping shared library sections:
libpixelflinger.so: No such file or directory.
Error while mapping shared library sections:
libhardware.so: No such file or directory.
Error while mapping shared library sections:
libemoji.so: No such file or directory.
Error while mapping shared library sections:
libjpeg.so: No such file or directory.
Error while mapping shared library sections:
libsecnativefeature.so: No such file or directory.
Error while mapping shared library sections:
libharfbuzz.so: No such file or directory.
Error while mapping shared library sections:
libquramimagecodec.so: No such file or directory.
Error while mapping shared library sections:
libskia.so: No such file or directory.
Error while mapping shared library sections:
libui.so: No such file or directory.
Error while mapping shared library sections:
libGLESv2.so: No such file or directory.
Error while mapping shared library sections:
libremotedesktop_client.so: No such file or directory.
Error while mapping shared library sections:
libgui.so: No such file or directory.
Error while mapping shared library sections:
libcamera_client.so: No such file or directory.
Error while mapping shared library sections:
libsqlite.so: No such file or directory.
Error while mapping shared library sections:
libdvm.so: No such file or directory.
Error while mapping shared library sections:
libGLESv1_CM.so: No such file or directory.
Error while mapping shared library sections:
libETC1.so: No such file or directory.
Error while mapping shared library sections:
libsisodrm.so: No such file or directory.
Error while mapping shared library sections:
libsonivox.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_foundation.so: No such file or directory.
Error while mapping shared library sections:
libmedia.so: No such file or directory.
Error while mapping shared library sections:
libsensor_yamaha_test.so: No such file or directory.
Error while mapping shared library sections:
libnfc_ndef.so: No such file or directory.
Error while mapping shared library sections:
libusbhost.so: No such file or directory.
Error while mapping shared library sections:
libQmageDecoder.so: No such file or directory.
Error while mapping shared library sections:
libhwui.so: No such file or directory.
Error while mapping shared library sections:
libbluedroid.so: No such file or directory.
Error while mapping shared library sections:
libdbus.so: No such file or directory.
Error while mapping shared library sections:
libandroid_runtime.so: No such file or directory.
Error while mapping shared library sections:
libvorbisidec.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_yuv.so: No such file or directory.
Error while mapping shared library sections:
libdrmframework.so: No such file or directory.
Error while mapping shared library sections:
libchromium_net.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_amrnb_common.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_enc_common.so: No such file or directory.
Error while mapping shared library sections:
libstagefright_avc_common.so: No such file or directory.
Error while mapping shared library sections:
libsavscmn.so: No such file or directory.
Error while mapping shared library sections:
libsavsff.so: No such file or directory.
Error while mapping shared library sections:
libstagefright.so: No such file or directory.
Error while mapping shared library sections:
libmtp.so: No such file or directory.
Error while mapping shared library sections:
libexif.so: No such file or directory.
Error while mapping shared library sections:
libmedia_jni.so: No such file or directory.
Error while mapping shared library sections:
libbcc.so: No such file or directory.
Error while mapping shared library sections:
libbcinfo.so: No such file or directory.
Error while mapping shared library sections:
libRS.so: No such file or directory.
Error while mapping shared library sections:
librs_jni.so: No such file or directory.
Error while mapping shared library sections:
libandroid.so: No such file or directory.
Error while mapping shared library sections:
libwebcore.so: No such file or directory.
Error while mapping shared library sections:
libsrv_um.so: No such file or directory.
Error while mapping shared library sections:
libpvr2d.so: No such file or directory.
Error while mapping shared library sections:
gralloc.omap4.so: No such file or directory.
(no debugging symbols found)
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
warning: shared library handler failed to enable breakpoint
No symbol table is loaded. Use the "file" command.
[Switching to Thread 26481]
Cannot find bounds of current function
Quit (expect signal SIGINT when the program is resumed)

  • 写回答

1条回答 默认 最新

  • 你知我知皆知 2024-08-02 12:29
    关注

    以下回答参考 皆我百晓生券券喵儿 等免费微信小程序相关内容作答,并由本人整理回复。

    要解决这个问题,首先确保你的设备已经连接到计算机,并且在Android Studio中正确配置了NDK。然后,请尝试以下步骤:

    1. 打开Android Studio。
    2. 在左侧菜单栏中选择“Run” -> “Debug As Android Application”,或者按快捷键F5。
    3. 在弹出的对话框中,勾选“Enable native debug mode”。这将允许你使用JNI库来调试你的应用。
    4. 点击“Start Debugging”按钮开始调试。

    如果你仍然遇到问题,可能是因为你的系统或设备没有正确的设置以支持JNI调试。你可以参考以下链接了解更多信息: https://developer.android.com/studio/debug/native-interop.html

    另外,如果你是使用Eclipse进行开发,可以尝试以下方法:

    1. 首先,确保你已经安装了Eclipse Java Development Tools(JDT)插件。
    2. 打开Eclipse并打开你的项目。
    3. 转到“Window” -> “Preferences” -> “Java” -> “SDKs & JREs”。
    4. 确保已勾选“Use JNA plugin for JNI”选项。
    5. 如果你需要更多关于如何配置NDK的调试环境的信息,请参阅以下文档:https://developer.android.com/studio/build/ndk-plugin#debug-native-code

    希望这些信息对你有所帮助!

    评论

报告相同问题?