Cocos2d-x compile android cannot run program

619 views Asked by At

created new cocos2d-x 3.6 project with cocos console comnand new -l cpp, all variables are set by running setup.py, then when i try to run cocos compile i get compilation errors.

log: log.txt

Cheked if there are spaces in paths but there isn't, everything is installed.

1

There are 1 answers

0
yangguang1029 On BEST ANSWER

the problem is here

Execute failed: java.io.IOEx ception:

Cannot run program"D:\MyCppGame\cocos2d\cocos\platform\android\java\${ aapt}"

(in directory "D:\MyCppGame\cocos2d\cocos\platform\android\java"):

Create Process error=2, The system cannot find the file specified

You can solve it by adding some lines to the SDK/tools/ant/build.xml

https://stackoverflow.com/a/30807140