误差在Ubuntu 12.04的Andr​​oid NDK-r9d Linux的-86的NDK-GDB [英] Error with ndk-gdb of android-ndk-r9d-linux-x86 in ubuntu 12.04

查看:307
本文介绍了误差在Ubuntu 12.04的Andr​​oid NDK-r9d Linux的-86的NDK-GDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用Android的NDK-r9d Linux的-86的NDK-GDB在Ubuntu 12.04调试Android原生应用HELLO-JNI,但收到此错误。

I use ndk-gdb of android-ndk-r9d-linux-x86 in ubuntu 12.04 to debug the android native application "hello-jni", but it receive this error.

  WARNING: The shell running this script isn't bash.  Although we try to avoid bashism in               scripts, things can happen.
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 143: .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: Bad substitution
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 555: [: 1: unexpected operator
  .../adt-bundle-linux-x86-20140321/android-ndk-r9d/ndk-gdb: 771: [: armeabi-v7a: unexpected operator

但Android的NDK-R8E-Linux的x86的是好的,我不知道为什么?谢谢你。

but the android-ndk-r8e-linux-x86 is ok, i wonder why? Thanks.

推荐答案

我相信NDK-GDB一直赞成ndk-gdb.py的pcated德$ P $(虽然这并没有被广而告之, IMO)。使用r9d,我拥有了你上面报告了同样的问题,但Python版本工作没有问题。

I believe 'ndk-gdb' has been deprecated in favor of 'ndk-gdb.py' (although this has not been widely advertised, IMO.) Using r9d, I had the same problem you reported above, but the python version worked without issue.

这篇关于误差在Ubuntu 12.04的Andr​​oid NDK-r9d Linux的-86的NDK-GDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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