When I build my cocos I get the error "ANT_ROOT not defined" even though I followed the cocos tutorial.
cocos -deploy -p android -release
Error: "ANT_ROOT not defined. Please define it in your environment"
How can I fix it?
When I build my cocos I get the error "ANT_ROOT not defined" even though I followed the cocos tutorial.
cocos -deploy -p android -release
Error: "ANT_ROOT not defined. Please define it in your environment"
How can I fix it?
You need to find where ant
is installed on your computer and if it's not, then install it. Then set the environment variable to the installed location.
Here's a similar question.
And another about setting environment variables.