一 MAC
1、Android环境准备, 按照下面的官网的介绍,安装安装配置原生开发环境 · GitBookdocs.cocos.com
2: 环境变量设置
在.bash_profile 配置的环境变量:export LC_ALL=en_US.UTF-8 这个必须要
#jdk
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-1.8.0_201.jdk/Contents/Home
export CLASSPAHT=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
export PATH=$JAVA_HOME/bin:$PATH:
#Add environment variable COCOS_CONSOLE_ROOT for cocos2d-x
export COCOS_CONSOLE_ROOT=/Users/zhanglianquan/SoftWare/cocos2d-x/cocos2d-x-3.17.1/tools/cocos2d-console/bin
export PATH=$COCOS_CONSOLE_ROOT:$PATH
# Add environment variable COCOS_X_ROOT for cocos2d-x
export COCOS_X_ROOT=/Users/zhanglianquan/SoftWare/cocos2d-x
export PATH=$COCOS_X_ROOT:$PATH
# Add environment variable COCOS_TEMPLATES_ROOT for cocos2d-x
expo