cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法

前端之家收集整理的这篇文章主要介绍了cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

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的 视图->偏好 里面设置目录就能解决

白花了一天工夫

cocosstudio菜单设置也太不人性化了

猜你在找的Cocos2d-x相关文章