Setting up Cocos2d for Android development on Windows

  • DaveSilver
    Likes 1

    Problem Description

    I attempted to follow this tutorial to setup Cocos2d-x on my computer for use with Android, but I encountered an issue. I’m at the point where I am using the command prompt to do setup.py and link the Android SDK to Cocos-2d-x. While all of the other modules have linked without any issue, it doesn’t seem to recognoize the android sdk no matter what I do. Whenever I try and put the sdk folder in, it says that it is not a valid root folder, and ignores it.

    I have tried putting the cocos2d-x folder into the same folder as the android-sdk root folder, I have tried updating and installing every package available within the sdk, and I have even tried typing the location of the root folder in “by hand”, but none of these solutions worked. Here is a screenshot of what happens with the important text highlighted:

    Does anyone know why this might be happening or if I should continue anyway?

    Thanks for the help.

  • Sonar Systems admin
    Likes 0

    Don’t put the SDK (or any of them for that matter) in a folder with any spaces, put it in the Android folder inside your Downloads, you should be all good after that.

     

    Kind regards

    Sonar Team

Login to reply