ProgrammingGuide > Installations > Android with Eclipse Installation and Setup

Android with Eclipse Installation and Setup

version: Cocos2d-x v3.x
update: Updated almost 3 years ago

Prerequisite

Open the proj.android 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' proj.android 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.

image2.png (88.8 kB) walzer@cocos2d-x.org, 2014-12-03 03:43

image3.png (100.2 kB) walzer@cocos2d-x.org, 2014-12-03 03:43

image4.png (275.1 kB) walzer@cocos2d-x.org, 2014-12-03 03:43

image5.png (154.1 kB) walzer@cocos2d-x.org, 2014-12-03 03:43

image6.png (175 kB) walzer@cocos2d-x.org, 2014-12-03 03:43

Sign up for our newsletter to keep up with the latest developments, releases and updates for Cocos2d-x.