Cocos2d-x compile - ant is not recognized as internal or external?

Hi!
I am about to compile cocos2d-x for eclipse usage.
But got this error:

Here are my paths:
ANT_HOME = C:\Users\nichlasDESKTOP\Downloads\apache-ant-1.9.6
ANT_ROOT = C:\Users\nichlasDESKTOP\Downloads\apache-ant-1.9.6
Path = C:\Users\nichlasDESKTOP\Documents\cocos2d-x_3-9\templates;C:\Users\nichlasDESKTOP\Documents\cocos2d-x_3-9\tools\cocos2d-console\bin;%ANT_HOME%\bin;%JAVA_HOME%\bin

Thanks!

Change it to ANT_ROOT = C:\Users\nichlasDESKTOP\Downloads\apache-ant-1.9.6\bin.

1 Like

That worked but omg I am just about to drop creating apps for android because wow I have got like 9 errors already and now this:


Thanks!

Any idea??

I don’t know your make files, manifests and properties settings.
Are you trying to compile the examples? How are you compiling them? Which engine version?
You would need to post these files to find out why the java compiler is expecting a different keyword.

If it’s possible, just upload your project.

Thanks! Here is the project:
http://www.filedropper.com/prjectname

I tried to download it, but an error occurred and now it cannot find the file anymore.

Not Found

The requested URL /prjectname was not found on this server.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

Edit: works again

1 Like

Never include the object files, when you share a project. They are useless for this task and take a lot of space.

Why do you have a lib folder with Cocos2dxActivity.java in PrjectName\proj.android\src\org\cocos2dx?
Delete it.

Why do you have android.library=true in project.properties? If you want to dex the classes and build an APK, you need to set it ti false.

Wow dude, Thanks!!
Got it to work. Thanks so much for not giving up on me :wink: haha