1_创建cocos_lua工程.bat
@echo off set /p projectName=Please input lua project name: cocos new "%projectName%" -p com.qingxue.game -l lua pause2_创建cocos_cpp工程.bat
@echo off set /p projectName=Please input cpp project name: cocos new "%projectName%" -p com.qingxue.game -l cpp pause
cd ***切换到android工程下面
3_交叉编译lua工程.bat
cocos compile -p android
cocos run -p android原文链接:https://www.f2er.com/cocos2dx/343604.html