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

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

问题描述

我试图使用ADT 20.0.3在Eclipse上调试具有本地代码的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天全站免登陆