环境:Ubuntu 系统

root@ubuntu:~# cat /proc/version
Linux version 4.15.0-51-generic (buildd@lgw01-amd64-059) (gcc version 7.3.0 (Ubuntu 7.3.0-16ubuntu3)) #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019

root@ubuntu:~# uname -a
Linux ubuntu 4.15.0-51-generic #55-Ubuntu SMP Wed May 15 14:27:21 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
 

在执行下面语句的时候报错了。重新配置PATH,重新下载NDK重新配置都无济于事。

./make-standalone-toolchain.sh --platform=android-21 --install-dir=$/home/ubuntu/androidtoolchains/android-arrch64 --arch=arm64 --platform=android-21

每次执行报错:

HOST_OS=linux
HOST_EXE=
HOST_ARCH=x86_64
HOST_TAG=linux-x86_64
HOST_NUM_CPUS=4
BUILD_NUM_CPUS=8
ERROR: Failed to create toolchain.

 

解决方案:

apt-get install python
安装python后再执行编译即可解决ERROR: Failed to create toolchain.问题

 

Logo

更多推荐