cocos打包时提示
发布项目成功
Based on: cocos2d-x-3.4
Running command: upgrade
Current version 'cocos2d-x-3.4' is same with target version 'cocos2d-x-3.4'. It's NOT necessary to upgrade project.
Based on: cocos2d-x-3.4
Running command: compile
Building mode: debug
ANT_ROOT not defined. Please define it in your environment
项目打包失败
解决途径:将“C:\Program Files\Java\jdk1.6.0_16\lib”目录下的tools.jar文件拷贝到“C:\Program Files\Java\jre6\lib”目录下,重新运行命令ant,运行正常,问题解决。
在cmd命令中:输入ant,如果输出: Buildfile:build.xml does not exist!
正常,重启
===========================================
好吧,最后是cocosstudio的 视图->偏好 里面设置目录就能解决
白花了一天工夫
原文链接:https://www.f2er.com/cocos2dx/343569.html