错误与ndk-gdb的android-ndk-r9d-linux-x86在ubuntu 12.04 [英] Error with ndk-gdb of android-ndk-r9d-linux-x86 in ubuntu 12.04

查看:408
本文介绍了错误与ndk-gdb的android-ndk-r9d-linux-x86在ubuntu 12.04的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在ubuntu 12.04中使用android-ndk-r9d-linux-x86的ndk-gdb来调试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'没有广泛的广告,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.

这篇关于错误与ndk-gdb的android-ndk-r9d-linux-x86在ubuntu 12.04的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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