Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to detect application ABI's when trying to debug NDK

Tags:

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 

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

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 

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

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

EDIT:

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.

like image 963
gninja Avatar asked Oct 04 '12 18:10

gninja


2 Answers

Go to Preferences -> Android -> NDK. You set a correct path for that, it will work. That way works for me.

like image 125
TienDC Avatar answered Oct 22 '22 06:10

TienDC


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.

like image 35
gninja Avatar answered Oct 22 '22 07:10

gninja