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

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

概述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: cocos

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菜单设置也太不人性化了

总结

以上是内存溢出为你收集整理的cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法全部内容,希望文章能够帮你解决cocostudio打包时提示ANT_ROOT not defined. Please define it in your environment解决方法所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1053460.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-25
下一篇 2022-05-25

发表评论

登录后才能评论

评论列表(0条)

保存