Now I tried to compile the whole stuff using the command line tools (no visual studio)
[MARTIN_LAPTOP] Sun 07/19/2015 21:29:27.09
C:\test_app\MyGame\proj.android
build_native.py -clean
[MARTIN_LAPTOP] Sun 07/19/2015 21:29:38.45
C:\test_app\MyGame\proj.android
python build_native.py
Please use cocos console instead.
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“C:\Program Files (x86)\Android\android-sdk\tools\android” update project -t android-15 -p
C:\test_app\MyGame\proj.android’
Updated project.properties
Updated local.properties
Updated file C:\test_app\MyGame\proj.android\proguard-project.txt
Android platform not specified, searching a default one…
running: ‘“C:\Program Files (x86)\Android\android-sdk\tools\android” update lib-project -p C:\test_a
pp\MyGame\proj.android../cocos2d/cocos/platform/android/java -t android-10’
Updated project.properties
Updated local.properties
Updated file C:\test_app\MyGame\proj.android..\cocos2d\cocos\platform\android\java\proguard-project
.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: ‘“C:\Librerias\android-ndk-r10e\ndk-build” -C C:\test_app\MyGame\proj.android -j8 NDK_MODUL
E_PATH=C:\test_app\MyGame\proj.android../cocos2d;C:\test_app\MyGame\proj.android../cocos2d/cocos;C
:\test_app\MyGame\proj.android../cocos2d/external NDK_TOOLCHAIN_VERSION=4.9 NDK_DEBUG=1’
make.exe: Entering directory C:/test_app/MyGame/proj.android' [x86] StaticLibrary : libcocos2d.a [x86] StaticLibrary : libcocostudio.a [x86] StaticLibrary : libcocosbuilder.a [x86] StaticLibrary : libcocos3d.a [x86] StaticLibrary : libspine.a [x86] StaticLibrary : libnetwork.a [x86] StaticLibrary : libaudioengine.a [x86] StaticLibrary : libui.a [x86] StaticLibrary : libcocosdenshion.a [x86] StaticLibrary : flatbuffers.a [x86] StaticLibrary : libextension.a [x86] StaticLibrary : libcocos2dxinternal.a [x86] StaticLibrary : libbox2d.a [x86] StaticLibrary : libcocos2dandroid.a [x86] StaticLibrary : libcpufeatures.a [x86] Gdbserver : [x86-4.9] libs/x86/gdbserver [x86] Gdbsetup : libs/x86/gdb.setup [x86] SharedLibrary : libcocos2dcpp.so [x86] Install : libcocos2dcpp.so => libs/x86/libcocos2dcpp.so make.exe: Leaving directory C:/test_app/MyGame/proj.android’
building apk
running: ‘“C:\Librerias\apache-ant-1.9.6-bin\bin\ant” clean debug -f C:\test_app\MyGame\proj.android
\build.xml -Dsdk.dir=“C:\Program Files (x86)\Android\android-sdk”’
Buildfile: C:\test_app\MyGame\proj.android\build.xml
-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
-setup:
[echo] Project Name: Y bue
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory C:\test_app\MyGame\proj.android\bin
[delete] Deleting directory C:\test_app\MyGame\proj.android\gen
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:
nodeps:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-pre-clean:
clean:
[delete] Deleting directory C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
[delete] Deleting directory C:\test_app\MyGame\cocos2d\cocos\platform\android\java\gen
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
-setup:
[echo] Project Name: Y bue
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for Y bue…
[gettarget] Project Target: Android 4.0.3
[gettarget] API level: 15
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\res
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\rsObj
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\rsLibs
[mkdir] Created dir: C:\test_app\MyGame\proj.android\gen
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\classes
[mkdir] Created dir: C:\test_app\MyGame\proj.android\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for Y bue…
[dependency] Ordered libraries:
[dependency] C:\test_app\MyGame\cocos2d\cocos\platform\android\java
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with ‘debug’…
nodeps:
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.3.3
[checkenv] Installed at C:\Program Files (x86)\Android\android-sdk
-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 22.0.1
[echo] Resolving Build Target for cocos2dxandroid…
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\res
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\rsObj
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\rsLibs
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\gen
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes
[mkdir] Created dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid…
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 25 source files to C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin
classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
[echo] Creating library output jar file…
[jar] Building jar: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar
-post-compile:
-obfuscate:
-dex:
[echo] Library project: do not convert bytecode…
-crunch:
[crunch] Crunching PNG Files in source dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\jav
a\res
[crunch] To destination dir: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\res
[crunch] Crunched 0 PNG files to update cache
-package-resources:
[echo] Library project: do not package resources…
-package:
[echo] Library project: do not package apk…
-post-package:
-do-debug:
[echo] Library project: do not create apk…
[propertyfile] Creating new property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bi
n\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop
[propertyfile] Updating property file: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\bu
ild.prop
-post-build:
debug:
-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files…
[echo] ----------
[echo] Handling Resources…
[aapt] Generating resource IDs…
[echo] ----------
[echo] Handling BuildConfig class…
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 3 source files to C:\test_app\MyGame\proj.android\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
[javac] 3 warnings
-post-compile:
-obfuscate:
-dex:
[dex] input: C:\test_app\MyGame\proj.android\bin\classes
[dex] input: C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar
[dex] input: C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar
[dex] Pre-Dexing C:\test_app\MyGame\cocos2d\cocos\platform\android\java\bin\classes.jar → cla
sses-87eb10b95912a81b66759ccd95c39883.jar
[dex] Pre-Dexing C:\Program Files (x86)\Android\android-sdk\tools\support\annotations.jar → a
nnotations-62bab95d6948a2db17bbc7976160b014.jar
[dex] Converting compiled files and external libraries into C:\test_app\MyGame\proj.android\bi
n\classes.dex…
[dx] Merged dex A (6 defs/1.6KiB) with dex B (84 defs/107.3KiB). Result is 90 defs/128.6KiB.
Took 0.1s
[dx] Merged dex A (90 defs/128.6KiB) with dex B (2 defs/1.1KiB). Result is 92 defs/161.9KiB.
Took 0.0s
-crunch:
[crunch] Crunching PNG Files in source dir: C:\test_app\MyGame\proj.android\res
[crunch] To destination dir: C:\test_app\MyGame\proj.android\bin\res
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-hdpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-hdpi
icon.png: 67% size of source)
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-ldpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-ldpi
icon.png: 0% size of source)
[crunch] Processing image to cache: C:\test_app\MyGame\proj.android\res\drawable-mdpi\icon.png =>
C:\test_app\MyGame\proj.android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry C:\test_app\MyGame\proj.android\bin\res\drawable-mdpi
icon.png: 53% size of source)
[crunch] Crunched 3 PNG files to update cache
[crunch] C:\test_app\MyGame\proj.android\res\drawable-hdpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited
[crunch] C:\test_app\MyGame\proj.android\res\drawable-ldpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited
[crunch] C:\test_app\MyGame\proj.android\res\drawable-mdpi\icon.png: libpng warning: iCCP: Not re
cognizing known sRGB profile that has been edited
-package-resources:
[aapt] Creating full resource package…
[aapt] (skipping file ‘.gitkeep’ due to ANDROID_AAPT_IGNORE pattern ‘.*’)
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating Y bue-debug-unaligned.apk and signing it with a debug key…
-post-package:
-do-debug:
[zipalign] Running zip align on final apk…
[echo] Debug Package: C:\test_app\MyGame\proj.android\bin\Y bue-debug.apk
[propertyfile] Creating new property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop
[propertyfile] Updating property file: C:\test_app\MyGame\proj.android\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 6 seconds
Move apk to C:\test_app\MyGame\bin\debug\android
build succeeded.
Then installed the app using the command line
adb -s emulator-5554 install “C:\test_app\MyGame\bin\debug\android\Y bue-debug.apk”
The application appears in the emulator but when I double click on it nothing happens. What is the default behavior of the Hello World app on android?