尝试在我的Android应用程序中调试某些C代码时获取“Unknown Application ABI”

时间:2013-08-15 03:24:27

标签: android debugging android-ndk

我正在尝试按照给定的here指令在我的Android应用中调试C代码,但是当我执行“Debug as / Native application”时,我得到Unknown Application ABI

我检查了我的NDK路径是否按照建议here正确设置,并按照建议hereDUMP_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

2 个答案:

答案 0 :(得分:12)

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

APP_PLATFORM := android-10

到我的Android.mk,它有效。

答案 1 :(得分:0)

我遇到了同样的问题,“Unknown Application ABI:”。并尝试了所有可能的解决方案,甚至想要格式化我的窗口。最后,我发现导致此问题的是TortoiseGit。删除TortoiseGit后,“作为原生调试”的效果非常好。