win10下网狐荣耀手机端android app编译

时间:2024-02-19 14:56:22

基于荣耀版(2017.5.21)12 款游戏..7z这款游戏,网上有下载的

1.解压后进入 cd shoujiduan

2.将client/base复制到client/ciphercode/下,也就是client/ciphercode/base

3.frameworks\cocos2d-x\cocos\platform\android\java\libs下放入httpclient-4.2.6.jar  httpcore-4.2.5.jar

4.在根目录shoujiduan下收入 cmd,cmd里输入命令cocos compile -p android

编译成功

如果报update android类似的错误,需要把tools-r25.2.3-windows.zip解压后覆盖掉android sdk里的tools目录

环境目录:

cocos v2.1 cocos2d-x v3.10 

ANT_ROOT E:\apache-ant-1.10.1\bin

ANDROID_SDK_ROOT E:\android-sdk-windows

CLASSPATH E:\jdk1.8.0_40\lib

ANDROID_SDK E:\android-sdk-windows\platforms;E:\android-sdk-windows\tools;E:\android-sdk-windows\platform-tools

JAVA_HOME E:\jdk1.8.0_40

NDK_ROOT E:\android-ndk-r10e\

PATH e:\Cocos\Cocos2d-x\Cocos2d-x-3.10\templates;e:\Cocos\Cocos2d-x\Cocos2d-x-3.10\tools\cocos2d-console\bin;E:\Python27\Scripts;E:\apache-ant-1.10.1\bin;E:\jdk1.8.0_40\bin;%NDK_ROOT%;E:\Cocos\Cocos Studio;E:\Python27;E:\make-3.81\bin;E:\AndroidStudio\gradle\gradle-4.1\bin;E:\android-sdk-windows\platform-tools;

COCOS_CONSOLE_ROOT e:\Cocos\Cocos2d-x\Cocos2d-x-3.10\tools\cocos2d-console\bin

COCOS_TEMPLATES_ROOT e:\Cocos\Cocos2d-x\Cocos2d-x-3.10\templates

COCOS_X_ROOT e:\Cocos\Cocos2d-x

操作系统 windows 10