Cocos2dX setup help!!

Cocos2d-x v3
  • shifubear
    Likes 0

    Problem Description

    Hey!

    I just started learning, or more like I want to start learning, Cocos2d-X and so I began your tutorials, but I’m already stuck on the second one where you set up the project for android. I found the NDK-r9d, SDK_r24, and ant-1.9.6 files and made sure to put those in when running setup.py. However, when I got to the part where I needed to run build_native.py, I get an error in terminal that looks like this

    Running command: compile
    Building mode: debug
    Using Eclipse project : /Users/sfukuzawa14/Desktop/shifubear/Sandboxes/Cocos2dXTutorial/proj.android
    Android platform not specified, searching a default one...
    Can't find right Android-platform for project : '/Users/sfukuzawa14/Desktop/shifubear/Sandboxes/Cocos2dXTutorial/proj.android'. The Android-platform should be equal/larger than 10.

    I have no idea how to fix this and would really appreciate some help on going through this :) 

    Also, I was wondering if it was necessary to go through the 2nd tutorial if I don’t really need android compatibility for now. It would be nice, but I just want to get through the tutorials for now. I initially had just skipped to the 4th tutorial after I finished the first one, but it was mentioned in the video that it was going to be based on the 2nd tutorial. 

    I’m using a macbook pro.

    Thank you guys in advance :D 

Login to reply