今天build发现Couldn’t find the gcc toolchain. 查看了python脚本。原来是我的NDK是最新的的r10,里面的if语句没有.扩展下这个脚本即可。
其中脚本的4.9部分是我添加的
因为NDK R10的带的gcc是4.9的,而以前只支持4.6,4.7,4.8
如果你没有用c++11,还是以前的R8即可,如果有就用新的版本吧。建议用新的,每次新版本都会对C++11的支持力度更大。你说呢。
53 ‘’‘Because ndk-r8e uses gcc4.6 as default. gcc4.6 doesn’t support c++11. So we should select gcc4.7 when
54 using ndk-r8e. But gcc4.7 is removed in ndk-r9, so we should determine whether gcc4.7 exist.
55 Conclution:
56 ndk-r8e -> use gcc4.7
57 ndk-r9 -> use gcc4.8
ndk-r10 -> use gcc4.9
58 ‘’’
