求助!!打包apk时不能通过

错误信息如下
以上省略无数行~~~
StaticLibrary : libui.a
StaticLibrary : libcocosdenshion.a
StaticLibrary : flatbuffers.a
StaticLibrary : libextension.a
StaticLibrary : libcocos2dxinternal.a
StaticLibrary : libbox2d.a
StaticLibrary : libcocos2dandroid.a
StaticLibrary : libcpufeatures.a
Gdbserver : libs/armeabi/gdbserver
Gdbsetup : libs/armeabi/gdb.setup
SharedLibrary : libcpp_tests.so
Install : libcpp_tests.so => libs/armeabi/libcpp_tests.so
make.exe: Leaving directory `F:/cocos2d-x-3.4/tests/cpp-tests/proj.android’
building apk
running: ‘“d:\android\ant-1.9.6\bin\ant” clean debug -f F:\cocos2d-x-3.4\tests\c
pp-tests\proj.android\build.xml -Dsdk.dir=“d:android\sdk”’

Buildfile: F:\cocos2d-x-3.4\tests\cpp-tests\proj.android\build.xml
Could not load definitions from resource anttasks.properties. It cou
ld not be found.

-check-env:

BUILD FAILED
d:\android\sdk\tools\ant\build.xml:397: Problem: failed to create task or type c
heckenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.

Total time: 1 second
Error running command, return code: 1
F:\cocos2d-x-3.4\tests\cpp-tests>cocos compile -p android
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“d:android\sdk\tools\android” update project -t android-18 -p F:\cocos
2d-x-3.4\tests\cpp-tests\proj.android’

Updated project.properties
Updated local.properties
Updated file F:\cocos2d-x-3.4\tests\cpp-tests\proj.android\proguard-project.txt
Android platform not specified, searching a default one…
running: ‘“d:android\sdk\tools\android” update lib-project -p F:\cocos2d-x-3.4\t
ests\cpp-tests\proj.android…/…/…/cocos/platform/android/java -t android-18’

Updated project.properties
Updated local.properties
Updated file F:\cocos2d-x-3.4\tests\cpp-tests\proj.android…\cocos\platfo
rm\android\java\proguard-project.txt
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.9
running: ‘“d:android\android-ndk-r10d\ndk-build” -C F:\cocos2d-x-3.4\tests\cpp-t
ests\proj.android -j8 NDK_MODULE_PATH=F:\cocos2d-x-3.4\tests\cpp-tests\proj.andr
oid…/…/…;F:\cocos2d-x-3.4\tests\cpp-tests\proj.android…/…/…/cocos;F:\coc
os2d-x-3.4\tests\cpp-tests\proj.android…/…/…/external NDK_TOOLCHAIN_VERSION=
4.9 NDK_DEBUG=1’

Android NDK: WARNING: APP_PLATFORM android-18 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
make.exe: Entering directory F:/cocos2d-x-3.4/tests/cpp-tests/proj.android' StaticLibrary : libcocos2d.a StaticLibrary : libcocostudio.a StaticLibrary : libcocosbuilder.a StaticLibrary : libcocos3d.a StaticLibrary : libspine.a StaticLibrary : libnetwork.a StaticLibrary : libaudioengine.a StaticLibrary : libui.a StaticLibrary : libcocosdenshion.a StaticLibrary : flatbuffers.a StaticLibrary : libextension.a StaticLibrary : libcocos2dxinternal.a StaticLibrary : libbox2d.a StaticLibrary : libcocos2dandroid.a StaticLibrary : libcpufeatures.a Gdbserver : libs/armeabi/gdbserver Gdbsetup : libs/armeabi/gdb.setup SharedLibrary : libcpp_tests.so Install : libcpp_tests.so => libs/armeabi/libcpp_tests.so make.exe: Leaving directory F:/cocos2d-x-3.4/tests/cpp-tests/proj.android’
building apk
running: ‘“d:\android\ant-1.9.6\bin\ant” clean debug -f F:\cocos2d-x-3.4\tests\c
pp-tests\proj.android\build.xml -Dsdk.dir=d:android\sdk’

Buildfile: F:\cocos2d-x-3.4\tests\cpp-tests\proj.android\build.xml
Could not load definitions from resource anttasks.properties. It cou
ld not be found.

-check-env:

BUILD FAILED
d:\android\sdk\tools\ant\build.xml:397: Problem: failed to create task or type c
heckenv
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any / declarations have taken place.

Total time: 0 seconds
Error running command, return code: 1
F:\cocos2d-x-3.4\tests\cpp-tests>

尝试过跟新Python等网上的方法,但依然通过不能:6:,盼大神帮忙!!~~!

不能解决楼主的问题,帮忙顶一下。楼主是在编译Cpp-test 吗?我当时也想编译它来着,后来放弃了。

我也遇到这个问题 郁闷好几天了 帮忙顶 球楼下答案

我也有这个问题,求!!!

我也遇到了,解决了,如果其他配置都OK的话,下载使用最新的SDK就可以了

环境配置有问题 ADT 还是 SDK 你那边确认下。