准备软件:
AndroidSDK
ANT : ANT_HOME
Python
环境变量:
ANDROID_HOME:D:\android\android-sdk
ANDROID_NDK_ROOT:D:\android\NDK\android-ndk-r10e
ANDROID_SDK_HOME:D:\android\android-sdk
ANT_HOME:D:\apache-ant-1.9.4
JAVA_HOME:C:\Program Files
(x86)\Java\jdk1.8.0_45
Path路径:
Path:D:\Python27;D:\Python27\Scripts;C:\ProgramData\Oracle\Java\javapath;%JAVA_HOME%\bin;%JAVA_HOME%\jre\bin;%JAVA_HOME%\bin;
%ANT_HOME%\bin;%ANDROID_SDK_HOME%\platform-tools;%ANDROID_SDK_HOME%\tools;
%ANDROID_NDK_ROOT%;
CLASSPATH:
.;%JAVA_HOME%\libdt.jar;%JAVA_HOME%\lib\tools.jar;%JAVA_HOME%\lib\annotations.jar;
UNITY_PATH: C:\Program Files
(x86)\Unity\Editor
Unity.exe -projectPath -nographics -batchmode -executeMethod AutomacticBuild.BuildAndroid -quit
Build命令:
Ant clean
Ant Release
网友评论