サンプルのblockのビルドに失敗します。原因と対策を教えてください。よろしくお願いします。
ダウンロードしたものは以下の通りです。
hsp34rc2.exe
jdk-7u79-windows-i586.exe
installer_r24.4.1-windows.exe
android-ndk-r12b-windows-x86.zip
android-ndk-r9c-windows-x86.zip
sdkのzip行方知れず
apache-ant-1.9.7-bin.zip
APIはSDK Manager.exeでインストールしています。
環境は
windows10home32ビット
hsp 3.4
androidオプション設定
C:\Program Files\Java\jdk1.7.0_79
C:\Android\android-sdk
C:\Android\android-ndk-r9c
C:\Android\apache-ant-1.9.7
C:\Android
当初ndkはr12bでしたが、パスが通らずr9cにしました。
consoleの表示は、以下の通りです。
HSP script preprocessor ver3.4 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4 / onion software 1997-2014(c)
#未初期化の変数があります(key)
#未初期化の変数があります(bsize)
#Code size (1854) String data size (204) param size (0)
#Vars (38) Labels (8) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 2432 bytes)
C:\Android\block\obj\local\armeabi\objs\block\hsp3embed\*.*
指定されたパスが見つかりません。
Buildfile: C:\Android\block\build.xml
-check-env:
[checkenv] Android SDK Tools Revision 25.1.7
[checkenv] Installed at C:\Android\android-sdk
-setup:
[echo] Project Name: block
[gettype] Project Type: Application
-pre-clean:
clean:
[delete] Deleting directory C:\Android\block\bin
[delete] Deleting directory C:\Android\block\gen
[getlibpath] Library dependencies:
[getlibpath] No Libraries
[subant] No sub-builds to iterate on
BUILD SUCCESSFUL
Total time: 0 seconds
Android NDK: WARNING:jni/Android.mk:block: non-system libraries in linker flags: -lhsp3lib
Android NDK: This is likely to result in incorrect builds. Try using LOCAL_STATIC_LIBRARIES
Android NDK: or LOCAL_SHARED_LIBRARIES instead to list the library dependencies of the
Android NDK: current module
[armeabi-v7a] Compile++ thumb: block <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void __HspEntry()':
jni/hsp3embed/hspsource.cpp:118:30: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0001()':
jni/hsp3embed/hspsource.cpp:219:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:549:21: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
[armeabi-v7a] SharedLibrary : libblock.so
[armeabi-v7a] Install : libblock.so => libs/armeabi-v7a/libblock.so
Buildfile: C:\Android\block\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.1.7
[checkenv] Installed at C:\Android\android-sdk
-setup:
[echo] Project Name: block
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.1
[echo] Resolving Build Target for block...
[gettarget] Project Target: Android 4.2.2
[gettarget] API level: 17
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Android\block\bin
[mkdir] Created dir: C:\Android\block\bin\res
[mkdir] Created dir: C:\Android\block\bin\rsObj
[mkdir] Created dir: C:\Android\block\bin\rsLibs
[mkdir] Created dir: C:\Android\block\gen
[mkdir] Created dir: C:\Android\block\bin\classes
[mkdir] Created dir: C:\Android\block\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for block...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[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 4 source files to C:\Android\block\bin\classes
-post-compile:
-obfuscate:
-dex:
[dex] input: C:\Android\block\bin\classes
[dex] Converting compiled files and external libraries into C:\Android\block\bin\classes.dex...
[dx] java.lang.UnsupportedClassVersionError: com/android/dx/command/Main : Unsupported major.minor version 52.0
[dx] at java.lang.ClassLoader.defineClass1(Native Method)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
[dx] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:412)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
[dx] at sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
[dx] Exception in thread "main"
BUILD FAILED
C:\Android\android-sdk\tools\ant\build.xml:888: The following error occurred while executing this line:
C:\Android\android-sdk\tools\ant\build.xml:890: The following error occurred while executing this line:
C:\Android\android-sdk\tools\ant\build.xml:902: The following error occurred while executing this line:
C:\Android\android-sdk\tools\ant\build.xml:283: null returned: 1
Total time: 1 second