本文介绍了获取“未知应用程序ABI”当试图在我的Android应用程序中调试一些C代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Android应用程序中调试C代码,遵循的说明,但是当我做Debug as / Native application我得到未知应用程序ABI

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.

我检查了我的NDK路径设置正确,如建议的并且我建议。

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.

有人可以帮助吗?

[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


推荐答案

显然是由于潜意识消息显示在未知应用程序ABI 行之间。所以我添加了

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

APP_PLATFORM := android-10

到我的 Android.mk ,它的工作原理。

to my Android.mk, and it works.

这篇关于获取“未知应用程序ABI”当试图在我的Android应用程序中调试一些C代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-11 10:22