14

I'm trying to debug C code in my Android app, following the instruction given here, but I when I do "Debug as/Native application" I get Unknown Application ABI.

I checked that my NDK path is set correctly as suggested here and I added the DUMP_APP_ABI option to ndk-build as suggested here.

Anybody can help?

[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] Android
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] NDK:
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] WARNING:
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] APP_PLATFORM
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] android-14
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] is
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] larger
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] than
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] android:minSdkVersion
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] 10
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] in
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] ./AndroidManifest.xml
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] 
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] 
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] 
[2013-08-15 11:16:14 - MyProject] Unknown Application ABI: 
[2013-08-15 11:16:14 - MyProject] 
armeabi
[2013-08-15 11:16:14 - MyProject] Unable to detect application ABI's
jul
  • 36,404
  • 64
  • 191
  • 318

2 Answers2

12

It was apparently due to the subliminal message shown between the Unknown Application ABI lines. So I added

APP_PLATFORM := android-10

to my Android.mk, and it works.

jul
  • 36,404
  • 64
  • 191
  • 318
  • 1
    Should be Application.mk...?? – Tony Park Jan 01 '14 at 13:13
  • @TonyPark: yes, it should be `Application.mk` – Alex Cohn Jan 08 '14 at 10:35
  • I have the same kind of error log. I add `APP_PLATFORM := android-8` in `Android.mk`but error persists. Even tried to create a Application.mk file right next to AndroidManifest.xml with `APP_PLATFORM := android-8` content, but it didn't work eather. How to solve this? – Narek Jun 02 '14 at 01:22
  • Check that your minSdkVersion in the Manifest file matches the version declared in APP_PLATFORM variable in the Application.mk file. This fix the problem for me. – hara Sep 26 '14 at 09:24
  • doesn't work... still getting: Unable to detect application ABI's Unknown Application ABI: – Dainius Kreivys Oct 09 '14 at 15:20
0

I have encountered the same issue, "Unknown Application ABI:". And tried all the possible solutions, even want to format my windows. Finally, I find it's TortoiseGit that causes this issue. After remove TortoiseGit, the "debug as native" works pretty well.