Desperate.
I tried compiling from the command line and (apparently) it looks OK, but when I load the APK to my phone (Android 4.3) it fails again.
D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android>ant debug install
Buildfile: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 22.3.0
[checkenv] Installed at D:\Android\sdk
-setup:
[echo] Project Name: HelloWorld
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 19.0.2
[echo] Resolving Build Target for HelloWorld...
[gettarget] Project Target: Android 2.3.3
[gettarget] API level: 10
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android
\bin\rsObj
[mkdir] Created dir: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android
\bin\rsLibs
[mkdir] Created dir: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android
\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for HelloWorld...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[dependency] API<=15: Adding annotations.jar to the classpath.
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-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 2 source files to D:\cocos2d-x-3.0beta2\samples\Cpp\HelloC
pp\proj.android\bin\classes
-post-compile:
-obfuscate:
-dex:
[dex] input: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android\bin\c
lasses
[dex] input: D:\Android\sdk\tools\support\annotations.jar
[dex] Pre-Dexing D:\Android\sdk\tools\support\annotations.jar -> annotatio
ns-9b8748c2df4ef1fdc806cadcfb06edb0.jar
[dex] Converting compiled files and external libraries into D:\cocos2d-x-3
.0beta2\samples\Cpp\HelloCpp\proj.android\bin\classes.dex...
[dx] Merged dex A (6 defs/1,8KiB) with dex B (2 defs/1,1KiB). Result is 8
defs/2,8KiB. Took 0,0s
-crunch:
[crunch] Crunching PNG Files in source dir: D:\cocos2d-x-3.0beta2\samples\Cpp
\HelloCpp\proj.android\res
[crunch] To destination dir: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.
android\bin\res
[crunch] Processing image to cache: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\res\drawable-hdpi\icon.png => D:\cocos2d-x-3.0beta2\samples\Cpp\H
elloCpp\proj.android\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry D:\cocos2d-x-3.0beta2\samples\Cpp\
HelloCpp\proj.android\bin\res\drawable-hdpi\icon.png: 67% size of source)
[crunch] Processing image to cache: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\res\drawable-ldpi\icon.png => D:\cocos2d-x-3.0beta2\samples\Cpp\H
elloCpp\proj.android\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry D:\cocos2d-x-3.0beta2\samples\Cpp\
HelloCpp\proj.android\bin\res\drawable-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\res\drawable-mdpi\icon.png => D:\cocos2d-x-3.0beta2\samples\Cpp\H
elloCpp\proj.android\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry D:\cocos2d-x-3.0beta2\samples\Cpp\
HelloCpp\proj.android\bin\res\drawable-mdpi\icon.png: 53% size of source)
[crunch] Crunched 3 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
[aapt] (skipping file '.gitignore' due to ANDROID_AAPT_IGNORE pattern '
.*')
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuil
der run.
[apkbuilder] Creating HelloWorld-debug-unaligned.apk and signing it with a debug
key...
-post-package:
-do-debug:
[zipalign] Running zip align on final apk...
[echo] Debug Package: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.andro
id\bin\HelloWorld-debug.apk
[propertyfile] Creating new property file: D:\cocos2d-x-3.0beta2\samples\Cpp\Hel
loCpp\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\bin\build.prop
[propertyfile] Updating property file: D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCp
p\proj.android\bin\build.prop
-post-build:
debug:
install:
[echo] Installing D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android\b
in\HelloWorld-debug.apk onto default emulator or device...
[exec] pkg: /data/local/tmp/HelloWorld-debug.apk
[exec] Success
[exec] 231 KB/s (1137168 bytes in 4.799s)
BUILD SUCCESSFUL
Total time: 12 seconds
D:\cocos2d-x-3.0beta2\samples\Cpp\HelloCpp\proj.android>