"未知应用ABI:"而“调试本机应用程序” [英] "Unknown Application ABI:" while 'debug as native application'

查看:88
本文介绍了"未知应用ABI:"而“调试本机应用程序”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我心中已经有这样的问题:

I'v got such problem:

[2013-11-18 14:38:50 - HelloJni] Unknown Application ABI: 
[2013-11-18 14:38:50 - HelloJni] 
[2013-11-18 14:38:50 - HelloJni] Unable to detect application ABI's

此问题occures上的每个项目,我试图调试作为本土。 我所看到的<一个href="http://stackoverflow.com/questions/17010969/debugging-native-$c$c-in-android-under-eclipse-fails">this, <一href="http://stackoverflow.com/questions/12733125/unable-to-detect-application-abis-when-trying-to-debug-ndk">this和<一href="http://stackoverflow.com/questions/18245867/getting-unknown-application-abi-when-trying-to-debug-some-c-$c$c-in-my-android">this话题,但这个解决方案没有带来任何影响在我的情况。

This problem occures on every project, which I am trying to debug 'as native'. I have seen this, this and this topics, but this solutions have not brought any effect in my case.

在其他计算机或虚拟机在同一个项目运行良好,使用相同的设置。

On other computer or on a VM the same project runs fine with the same settings.

清单

 ...
<uses-sdk 
    android:minSdkVersion="14"
    android:targetSdkVersion="14" />
<application android:label="@string/app_name"
             android:debuggable="true">
 ...

Android.mk

Android.mk

LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE    := hello-jni
LOCAL_SRC_FILES := hello-jni.cpp
include $(BUILD_SHARED_LIBRARY)

Verison在项目选项也已设置为API-14。

Verison in Project options also has been set to api-14.

我心中已经还下载了日食,SDK的新版本,NDK。我清理所有的系统范围内的变量和路径元素。 我的机器在运行win7x64

I'v also downloaded new version of eclipse, sdk, ndk. I cleaned all system-wide variables and PATH elements. My machine runs under win7x64.

PS。唯一的问题occures如果我试图调试,当我建立并运行它 - 它运行很好

PS. Problem occures only if I am trying to debug, when i build and run it - it runs great.

EDIT1 这是我的 NDK-建立DUMP_APP_ABI 概述

c:\Users\Usr\workspace\HelloJni>D:\ndk\ndk-build.cmd DUMP_APP_ABI
armeabi

c:\Users\Usr\workspace\HelloJni>

EDIT2 重要通知。我心中已经尝试运行调试本机在不同的机器下面的步骤 git的克隆 - >导入IDE - >调试本机。所有机器都几乎相同的配置(Win7的是常见的所有的人)。这个问题只有在我的电脑。 我心中已经尝试了不同的集成开发环境(日食+ CDT,ADT),清理路径,检查行结束符。 Finnaly我desided开发的linux下的虚拟机code本机的一部分。这是我的解决方案。此外,我并不需要的cygwin了以crosscompile一些库。

Edit2 Important notice. I'v tried to run debug as native on different machines with next steps git clone -> import to ide -> Debug as native. All machines have nearly the same configuration (Win7 is common for all of them). This problem was only on my computer. I'v tried different IDEs(eclipse+cdt, adt), cleaned path, checked line endings. Finnaly I desided to develop native part of code under linux VM. It was my solution. Also I didn't need cygwin anymore to crosscompile some libraries.

推荐答案

在Windows上尤其是,这可能是因为其中的一个文件( project.properties Application.mk Android.mk AndroidManfest.xml )有错行结束符(CRLF)。在运行 NDK-建立DUMP_APP_ABI ,并确保输出是干净的。

On Windows especially, it could be because one of the files (project.properties, Application.mk, Android.mk, or AndroidManfest.xml) has wrong line endings (CRLF). You run ndk-build DUMP_APP_ABI and make sure the output is clean.

所有使用 $(信息...) $(__ ndk_info)等应此禁用目标。

All use of $(info …) or $(__ndk_info), etc. should be disabled for this target.

这篇关于&QUOT;未知应用ABI:&QUOT;而“调试本机应用程序”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆