尝试调试 NDK 时无法检测到应用程序 ABI [英] Unable to detect application ABI's when trying to debug NDK

查看:26
本文介绍了尝试调试 NDK 时无法检测到应用程序 ABI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 Eclipse 上使用 ADT 20.0.3 调试带有本机代码的 Android 应用程序,它给了我这个错误:

I'm trying to debug an Android application with native code using ADT 20.0.3 on Eclipse and it's giving me this error:

[2012-10-04 12:09:12 - ndk_android] Unknown Application ABI: 
[2012-10-04 12:09:12 - ndk_android] 
[2012-10-04 12:09:12 - ndk_android] Unable to detect application ABI's

jni 文件正确构建,我可以使用本机代码运行应用程序.

The jni files build properly and I can run the application, with the native code.

我的构建文件 Application.mk 如下所示:

My build file Application.mk looks like this:

APP_OPTIM        := debug
APP_ABI := armeabi armeabi-v7a
APP_STL := gnustl_static

LOCAL_LDLIBS := $(ANDROID_NDK)/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a/libgnustl_static.a

有谁知道这个错误的原因是什么?有没有人通过本机调试来使用 ADT 20?

Does anyone know what the cause of this error is? Has anyone gotten Native debugging to work with ADT 20?

我正在遵循这里的指南:http://tools.android.com/recent/usingthendkplugin

I'm following the guide from here: http://tools.android.com/recent/usingthendkplugin

清理和删除临时文件/文件夹/设置后,我仍然遇到同样的错误.然后我安装了一个干净的 Eclipse.安装了 CDT,然后是 ADT,这似乎解决了这个问题.我相信问题出在 Sequoyah 或 Eclipse 中的其他插件/设置上.

After cleaning and removing temporary files/folders/settings I was still getting the same error. I then installed a clean Eclipse. Installed the CDT, then the ADT, and that seems to have fixed this problem. I believe the problem was with Sequoyah or another plugin/settings in Eclipse.

这已解决,但现在我遇到了另一个问题.断点不起作用,但我会保留另一个问题.

This was solved, but now I'm getting another problem. The breakpoints aren't working, but I'll keep that for another question.

推荐答案

我认为问题出在 Sequoyah 或 Eclipse 中的其他插件/设置上.我安装了一个干净的 Eclipse.安装了 CDT,然后是 ADT,这似乎解决了这个问题.

I believe the problem was with Sequoyah or another plugin/settings in Eclipse. I installed a clean Eclipse. Installed the CDT, then the ADT, and that seem fixed this problem.

这篇关于尝试调试 NDK 时无法检测到应用程序 ABI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆