我在ubuntu12.04中使用android-ndk-r9d-linux-x86的ndk来调试android本机应用程序"hello-jni",但是它收到了这个错误。
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是可以的,我想知道为什么?谢谢。
发布于 2014-06-11 21:02:15
我认为'ndk-gdb‘已经被反对为'ndk-gdb.py’(虽然国际海事组织还没有广泛宣传这一点)。使用r9d时,我遇到了您前面报告的相同问题,但是python版本没有出现问题。
发布于 2016-03-24 09:05:18
WARNING: The shell running this script isn't bash. Although we try to avoid bashism in scripts, things can happen. --这意味着你用的是破折号。
将/bin/sh更改为/bin/bash将解决警告和“坏替换”问题。
https://stackoverflow.com/questions/22854152
复制相似问题