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,023
  • 10
  • 38
  • 42
devcrazy
  • 340
  • 2
  • 11

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,023
  • 10
  • 38
  • 42