axmol/templates/cpp-template-default/proj.android
Jason Xu 67a558c83d for 93562d6aa6
update Cocos2dxHelper and AndroidManifest.xml template.
2014-05-16 15:55:00 +08:00
..
.settings update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
jni := -> += 2014-05-07 14:35:43 +08: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 update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
.project update cpp-default-template for android *Eclipse* 2014-05-08 11:20:25 +08:00
AndroidManifest.xml for 93562d6aa6 2014-05-16 15:55:00 +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 Upgrade build_native.py to take variable number of arguments 2014-05-05 12:48:51 +09:00
proguard-project.txt Removes unused templates. 2014-03-04 09:46:32 +08:00
project.properties Removes unused templates. 2014-03-04 09:46:32 +08: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