やったことは、
block3.hspを「hsp3dh.exe」を使ってビルドして(クリーンも行なっている)転送をして
転送されたアプリをGalaxyS(Android:2.3.3)で実行すると
アプリケーション testapp (プロセス net.USERNAME.testapp)が予期せず中止しました。
と出てしまい、強制終了されてしまいます。 「xsamplegcube.hsp」も実行しようと思ったのですが結果は同じでした。 ビルド時のログは、
Buildfile: C:\Users\USERNAME\AppData\Roaming\testapp\build.xml
-set-mode-check:
-set-debug-files:
-set-debug-mode:
-debug-obfuscation-check:
-setup:
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\USERNAME\AppData\Roaming\testapp\bin
[mkdir] Created dir: C:\Users\USERNAME\AppData\Roaming\testapp\bin\res
[echo] Gathering info for testapp...
[setup] Android SDK Tools Revision 19
[setup] Project Target: Android 2.3.3
[setup] API level: 10
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] No library dependencies.
[setup]
[setup] ------------------
[setup] API<=15: Adding annotations.jar to the classpath.
[setup]
[setup] ------------------
-build-setup:
[mkdir] Created dir: C:\Users\USERNAME\AppData\Roaming\testapp\gen
[mkdir] Created dir: C:\Users\USERNAME\AppData\Roaming\testapp\bin\classes
-pre-build:
-code-gen:
[echo] ----------
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[renderscript] No RenderScript files to compile.
[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:\Users\USERNAME\AppData\Roaming\testapp\bin\classes
-post-compile:
-obfuscate:
-dex:
[dex] Converting compiled files and external libraries into C:\Users\USERNAME\AppData\Roaming\testapp\bin\classes.dex...
-crunch:
[crunch] Crunching PNG Files in source dir: C:\Users\USERNAME\AppData\Roaming\testapp\res
[crunch] To destination dir: C:\Users\USERNAME\AppData\Roaming\testapp\bin\res
[crunch] Processing image to cache: C:\Users\USERNAME\AppData\Roaming\testapp\res\drawable-hdpi\icon.png => C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-hdpi\icon.png
[crunch] (processed image to cache entry C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-hdpi\icon.png: 0% size of source)
[crunch] Processing image to cache: C:\Users\USERNAME\AppData\Roaming\testapp\res\drawable-ldpi\icon.png => C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-ldpi\icon.png
[crunch] (processed image to cache entry C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-ldpi\icon.png: 0% size of source)
[crunch] Processing image to cache: C:\Users\USERNAME\AppData\Roaming\testapp\res\drawable-mdpi\icon.png => C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-mdpi\icon.png
[crunch] (processed image to cache entry C:\Users\USERNAME\AppData\Roaming\testapp\bin\res\drawable-mdpi\icon.png: 0% size of source)
[crunch] Crunched 3 PNG files to update cache
-package-resources:
[aapt] Creating full resource package...
-package:
[apkbuilder] Current build type is different than previous build: forced apkbuilder run.
[apkbuilder] Creating testapp-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:\Users\USERNAME\AppData\Roaming\testapp\bin\testapp-debug.apk
[propertyfile] Creating new property file: C:\Users\USERNAME\AppData\Roaming\testapp\bin\build.prop
[propertyfile] Updating property file: C:\Users\USERNAME\AppData\Roaming\testapp\bin\build.prop
[propertyfile] Updating property file: C:\Users\USERNAME\AppData\Roaming\testapp\bin\build.prop
[propertyfile] Updating property file: C:\Users\USERNAME\AppData\Roaming\testapp\bin\build.prop
-post-build:
debug:
BUILD SUCCESSFUL
Total time: 8 seconds
こんな感じです。ユーザネームを「USERNAME」に置き換えしています。何か、ビルドの時点でミスがあるのでしょうか?
ちなみに、パソコン上では普通に起動、動作していました。



