1

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?

belwood
  • 3,320
  • 11
  • 38
  • 45
devcrazy
  • 505
  • 5
  • 14

1 Answers1

0

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.

belwood
  • 3,320
  • 11
  • 38
  • 45