1.安装jdk
BUILD Failed /home/bilal/tmp/ant/build.xml:19: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "/usr/lib/jvm/java-6-openjdk/jre"
@H_403_10@增加一个JAVA_HOME的环境变量,指向jdk的路径C:\Program Files\Java\jdk1.8.0_05 (这里必须是jdk的路径,不能是jre的路径)
@H_403_10@
@H_403_10@2.安装ant
@H_403_10@http://ant.apache.org/bindownload.cgi
@H_403_10@在环境变量path里面指向ant的解压目录即可
@H_403_10@3.在ant release之前需要更新android工程的配置
@H_403_10@android update project -p . -t 1
-t:target id,可以如下获取:
-n:工程名字
-p:工程路径
sdk.dir is missing.错误就是没有执行这句命令
原文链接:https://www.f2er.com/cocos2dx/345689.html