しまくろねこさん
勝手ながら申し訳ありませんが
3.5β3にバージョンを変更し、下記の環境を整えました。
JDK : 1.6.0_38 (C:\Program Files\Java\jdk1.6.0_38)
SDK : F:\android\android-sdk-windows
NDK : r7c (F:\android\android-ndk-r7c)
ANT : 1.9.4 --> 1.9.2 (F:\android\apache-ant-1.9.2)
PROJECT : C:\Users\ (ユーザー名)\Desktop\test android program1
(前のご返答でプロジェクトフォルダのパスに誤りがありました。↑が正しいものです)
環境を整えビルドすると以下のようなエラーが出ました。
#HSP script preprocessor ver3.4 / onion software 1997-2014(c)
#Use file [hspdef.as]
#HSP code generator ver3.4 / onion software 1997-2014(c)
#Code size (172) String data size (8) param size (0)
#Vars (1) Labels (2) Modules (0) Libs (0) Plugins (0)
#No error detected. (total 302 bytes)
Buildfile: C:\Users\hayato0518\Desktop\test android program1\sumple1\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.1.7
[checkenv] Installed at F:\android\android-sdk-windows
-setup:
[echo] Project Name: sumple1
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.0 rc4
[echo] Resolving Build Target for sumple1...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\rsObj
[mkdir] Created dir: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\rsLibs
[echo] ----------
[echo] Resolving Dependencies for sumple1...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Found Deleted Target File
[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] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 2 source files to C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\classes
[javac] 警告:java\lang\Object.class(java\lang:Object.class): メジャーバージョン 51 は、このコンパイラでサポートされている最新のメジャーバージョン 50 より新しいです。
[javac] コンパイラのアップグレードをお勧めします。
[javac] 警告 1 個
-post-compile:
-obfuscate:
-dex:
[dex] input: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\classes
[dex] Converting compiled files and external libraries into C:\Users\hayato0518\Desktop\test android program1\sumple1\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.defineClassCond(ClassLoader.java:631)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[dx] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[dx] at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[dx] Could not find the main class: com.android.dx.command.Main. Program will exit.
[dx] Exception in thread "main"
BUILD FAILED
F:\android\android-sdk-windows\tools\ant\build.xml:888: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:890: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:902: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:283: null returned: 1
Total time: 4 seconds
"Compile++ thumb : sumple1 <= hspsource.cpp
jni/hsp3embed/hspsource.cpp: In function 'void L0002()':
jni/hsp3embed/hspsource.cpp:61: warning: deprecated conversion from string constant to 'char*'
SharedLibrary : libsumple1.so
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3code.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3embed.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_util.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(dpmread.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3debug.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3gr_dish.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3int.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_core.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_double.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_int.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_label.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_str.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspvar_struct.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspwnd_dish.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hspwnd_obj.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(stack.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(strbuf.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(strnote.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(sysreq.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(supio_ndk.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3ext_ndk.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hgiox.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hgtex.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(stb_image.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(mmman.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(hsp3dw.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(omkedraw.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(grain.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(rock.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(random.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(game.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(spuvessel.o): Unknown EABI object attribute 44
F:/android/android-ndk-r7c/toolchains/arm-linux-androideabi-4.4.3/prebuilt/windows/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld.exe: Warning: libs/armeabi-v7a\libhsp3lib.a(explosion.o): Unknown EABI object attribute 44
Install : libsumple1.so => libs/armeabi-v7a/libsumple1.so
Buildfile: C:\Users\hayato0518\Desktop\test android program1\sumple1\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 25.1.7
[checkenv] Installed at F:\android\android-sdk-windows
-setup:
[echo] Project Name: sumple1
[gettype] Project Type: Application
-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.0 rc4
[echo] Resolving Build Target for sumple1...
[gettarget] Project Target: Android 5.0.1
[gettarget] API level: 21
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\rsObj
[mkdir] Created dir: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\rsLibs
[echo] ----------
[echo] Resolving Dependencies for sumple1...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on
-code-gen:
[mergemanifest] Found Deleted Target File
[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] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 2 source files to C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\classes
[javac] 警告:java\lang\Object.class(java\lang:Object.class): メジャーバージョン 51 は、このコンパイラでサポートされている最新のメジャーバージョン 50 より新しいです。
[javac] コンパイラのアップグレードをお勧めします。
[javac] 警告 1 個
-post-compile:
-obfuscate:
-dex:
[dex] input: C:\Users\hayato0518\Desktop\test android program1\sumple1\bin\classes
[dex] Converting compiled files and external libraries into C:\Users\hayato0518\Desktop\test android program1\sumple1\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.defineClassCond(ClassLoader.java:631)
[dx] at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
[dx] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
[dx] at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
[dx] at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
[dx] at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
[dx] at java.security.AccessController.doPrivileged(Native Method)
[dx] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
[dx] at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:295)
[dx] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
[dx] at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
[dx] Could not find the main class: com.android.dx.command.Main. Program will exit.
[dx] Exception in thread "main"
BUILD FAILED
F:\android\android-sdk-windows\tools\ant\build.xml:888: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:890: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:902: The following error occurred while executing this line:
F:\android\android-sdk-windows\tools\ant\build.xml:283: null returned: 1
Total time: 4 seconds
こういう風にSDKとJAVAの警告とエラーが出ました。
これは一体どうすれば・・・
いいのでしょうか?
Javaが原因でしょうか?それともSDKに問題があるのでしょうか?
よろしくおねがいします。