请问有大神知道怎么解决这个问题么

E:\hello>cocos compile -p android
编译模式:debug
使用 Eclipse 工程:E:\hello\frameworks\runtime-src\proj.android
正在执行:’“D:\Android\SDK\tools\android” update project -t android-20 -p E:\hel
lo\frameworks\runtime-src\proj.android’

Updated project.properties
Updated local.properties
Updated file E:\hello\frameworks\runtime-src\proj.android\proguard-project.txt
正在执行:’“D:\Android\SDK\tools\android” update lib-project -p E:\hello\framewo
rks\cocos2d-x\cocos\platform\android\java -t android-20’

Updated project.properties
Updated local.properties
Updated file E:\hello\frameworks\cocos2d-x\cocos\platform\android\java\proguard-
project.txt
正在执行 ndk-build…
NDK 编译模式:debug
正在执行:’“D:\Android\NDK\ndk-build” -C E:\hello\frameworks\runtime-src\proj.an
droid -j8 NDK_MODULE_PATH=E:\hello\frameworks\cocos2d-x;E:\hello\frameworks\coco
s2d-x\cocos;E:\hello\frameworks\cocos2d-x\external NDK_TOOLCHAIN_VERSION=4.9 NDK
_DEBUG=1’

Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
make: Entering directory E:/hello/frameworks/runtime-src/proj.android' [armeabi] StaticLibrary : libjscocos2d.a [armeabi] StaticLibrary : libcocos2d.a [armeabi] StaticLibrary : liblocalstorage.a [armeabi] StaticLibrary : libcocostudio.a [armeabi] StaticLibrary : libcocosbuilder.a [armeabi] StaticLibrary : libcocos3d.a [armeabi] StaticLibrary : libspine.a [armeabi] StaticLibrary : libui.a [armeabi] StaticLibrary : libcocosdenshion.a [armeabi] StaticLibrary : flatbuffers.a [armeabi] StaticLibrary : libextension.a [armeabi] StaticLibrary : libaudioengine.a [armeabi] StaticLibrary : libbox2d.a [armeabi] StaticLibrary : libnetwork.a [armeabi] StaticLibrary : libcocos2dxinternal.a [armeabi] StaticLibrary : librecast.a [armeabi] StaticLibrary : libbullet.a [armeabi] StaticLibrary : libjscocos2dandroid.a [armeabi] StaticLibrary : libcocos2dandroid.a [armeabi] StaticLibrary : libcpufeatures.a [armeabi] Gdbserver : [arm-linux-androideabi-4.9] libs/armeabi/gdbserver [ armeabi] Gdbsetup : libs/armeabi/gdb.setup [armeabi] SharedLibrary : libcocos2djs.so [armeabi] Install : libcocos2djs.so => libs/armeabi/libcocos2djs.so make: Leaving directory E:/hello/frameworks/runtime-src/proj.android’
正在生成 apk 文件…
正在执行:’“D:\Android\ANT\bin\ant” clean debug -f E:\hello\frameworks\runtime-s
rc\proj.android\build.xml -Dsdk.dir=“D:\Android\SDK”’

Buildfile: E:\hello\frameworks\runtime-src\proj.android\build.xml

-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\Android\SDK

-setup:
[echo] Project Name: hello
[gettype] Project Type: Application

-pre-clean:

clean:
[getlibpath] Library dependencies:
[getlibpath]
[getlibpath] ------------------
[getlibpath] Ordered libraries:

nodeps:

-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\Android\SDK

-setup:
[echo] Project Name: cocos2dxandroid
[gettype] Project Type: Android Library

-pre-clean:

clean:

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\Android\SDK

-setup:
[echo] Project Name: hello
[gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 27.0.1
[echo] Resolving Build Target for hello…
[gettarget] Project Target: Android 4.4W.2
[gettarget] API level: 20
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin\res
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin\rsObj
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin\rsLibs

[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\gen
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin\classe

s
[mkdir] Created dir: E:\hello\frameworks\runtime-src\proj.android\bin\dexedL
ibs
[echo] ----------
[echo] Resolving Dependencies for hello…
[dependency] Ordered libraries:
[dependency] E:\hello\frameworks\cocos2d-x\cocos\platform\android\java
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with ‘debug’…

nodeps:

-set-mode-check:

-set-debug-files:

-check-env:
[checkenv] Android SDK Tools Revision 25.2.5
[checkenv] Installed at D:\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: 27.0.1
[echo] Resolving Build Target for cocos2dxandroid…
[gettarget] Project Target: Android 4.4W.2
[gettarget] API level: 20
[echo] ----------
[echo] Creating output directories if needed…
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin\res
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin\rsObj
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin\rsLibs
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\gen
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin\classes
[mkdir] Created dir: E:\hello\frameworks\cocos2d-x\cocos\platform\android\ja
va\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for cocos2dxandroid…
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------

-code-gen:
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files…
[aidl] Found 1 AIDL files.
[aidl] Compiling 1 AIDL files.
[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 29 source files to E:\hello\frameworks\cocos2d-x\cocos\pla
tform\android\java\bin\classes
[javac] 错误: 不再支持源选项 1.5。请使用 1.6 或更高版本。
[javac] 错误: 不再支持目标选项 1.5。请使用 1.6 或更高版本。

BUILD FAILED
D:\Android\SDK\tools\ant\build.xml:597: The following error occurred while execu
ting this line:
D:\Android\SDK\tools\ant\build.xml:716: The following error occurred while execu
ting this line:
D:\Android\SDK\tools\ant\build.xml:730: Compile failed; see the compiler error o
utput for details.

Total time: 7 seconds
执行命令出错,返回值:1。

换个高点版本的JDK试试吧。

你是不是用了java9?换个java8或者7吧

解决了,用java8就好了