Android with Eclipse Installation and Setup

Deprecated Document. Cocos2d-x V3.15 or less is the last supported version.


Open the project with Eclipse.

  • Launch Eclipse

  • Right click your mouse at the empty area of the Package Explorer and choose Import.

  • Choose Existing Android Code Into Workspace from the pop up dialog and Click Next.

  • Click the Browse button to choose the directory of CPP-Tests and Click Ok.

  • Click Finish.

Import Libcocos2dx Project

  • Same steps as above only using the path of the libcocos2dx project is [your own game project folder]/cocos/2d/platform/android/java.

Build and Run the Android Project

  • Connect your Android phone with USB remote debugging option enabled.

  • Make sure your computer can recognize your phone (you might need to install drivers for your specific phone)

  • Right click on the project and choose Run as -> Android Application.

results matching ""

    No results matching ""