14

我正在尝试按照此处给出的说明在我的 Android 应用程序中调试 C 代码,但是当我执行“调试为/本机应用程序”时,我得到了Unknown Application ABI

我检查了我的 NDK 路径是否按照此处的建议正确设置,并按照此处的建议添加了DUMP_APP_ABI选项。ndk-build

有人可以帮忙吗?

[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
4

2 回答 2

12

这显然是由于Unknown Application ABI字里行间显示的潜意识信息。所以我加了

APP_PLATFORM := android-10

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

于 2013-08-15T05:12:40.040 回答
0

我遇到了同样的问题,“未知应用程序 ABI:”。并尝试了所有可能的解决方案,甚至想格式化我的窗口。最后,我发现是 TortoiseGit 导致了这个问题。删除 TortoiseGit 后,“调试为本机”效果很好。

于 2014-12-20T03:09:08.070 回答