axmol/templates/cpp-template-default/proj.android
Dhilan007 648e7767d4 fixed can't move app to SD card after installed on android. 2014-06-17 12:03:20 +08:00
..
.settings update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
jni Android project improvements 2014-05-19 17:47:17 +04:00
res issue #4674: Re-added deleted source files. 2014-05-04 14:37:55 +08:00
src/org/cocos2dx/cpp update templates for remove native activity 2014-03-25 15:43:42 +08:00
.classpath update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
.cproject debug mode by default 2014-05-20 13:00:21 +04:00
.project update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
AndroidManifest.xml fixed can't move app to SD card after installed on android. 2014-06-17 12:03:20 +08:00
README.md update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
ant.properties Removes unused templates. 2014-03-04 09:46:32 +08:00
build-cfg.json issue #4674: Re-added deleted source files. 2014-05-04 14:37:55 +08:00
build.xml Removes unused templates. 2014-03-04 09:46:32 +08:00
build_native.py debug mode by default 2014-05-20 13:00:21 +04:00
proguard-project.txt Removes unused templates. 2014-03-04 09:46:32 +08:00
project.properties Squashed commit of the following: 2014-05-16 14:36:00 -07:00

README.md

Prerequisites:

  • Android NDK
  • Android SDK OR Eclipse ADT Bundle
  • Android AVD target installed

Building project

There are two ways of building Android projects.

  1. Eclipse
  2. Command Line

Import Project in Eclipse

####Step 1: C/C++ Environment Variable NDK_ROOT

  • Eclipse->Preferences->C/C++->Build->Environment.
  • Click Add button and add a new variable NDK_ROOT pointing to the root NDK directory. Example
  • Only for Windows: Add new variables CYGWIN with value nodosfilewarning and SHELLOPTS with value igncr

####Step 2: Adding and running from Eclipse

Example Import

  1. File->New->Project->Android Project From Existing Code
  2. Browse to your project directory and Add the project
  3. Click Run as Android Application to run on connected device or emulator.

That's all !!!

Running project from Command Line

$ cd NEW_PROJECTS_DIR/MyGame
$ cocos run -p android -j 4