I can't compile my game!

Yesterday I wanted to upgrade cocos2d-x version from 3.16 to 3.17.

So I did;
install python 2.7.15,
install other requirements,
execute setup.py,
new cocos2d project (cocos new ...),
copy old project resources and source to new directory,
open new project in android studio 3.1.3,
upgrade gradle from 3.x to 4.x (it says it’s recommended),
and build project.

But i can’t successfully compile it. It gives me some weird errors. it says “Build command failed.”

How can i fix this problem, thanks in advance.

By the way, i think there are some errors in my source code.

CC_CALLBACK_* codes are underlined with red, for example:
CC_CALLBACK_2(HelloWorld::buttonMusicPressed, this) gives me “Error after macro substitution” error, it’s probably why i can’t compile my game. How can i solve this?

Please provide full error log, because “Build command failed.” can be everything :slight_smile:

1 Like

Well, the problem was wrong NDK version. I downgraded NDK from r17 to r16 and the problem solved.