E:\mygame\proj.android>build_native.py
Please use cocos console instead.
Running command: compile
Building mode: debug
Android platform not specified, searching a default one…
running: ‘“C:\dev\sdk\tools\android” update project -t android-20 -p E:\mygame\p
roj.android’
Updated project.properties
Updated local.properties
Updated file E:\mygame\proj.android\proguard-project.txt
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
Android platform not specified, searching a default one…
running: ‘“C:\dev\sdk\tools\android” update lib-project -p E:\mygame\proj.androi
d…/cocos2d/cocos/platform/android/java -t android-10’
Error: Target id ‘android-10’ is not valid. Use ‘android.bat list targets’ to ge
t the target ids.
building native
NDK build mode: debug
NDK_TOOLCHAIN_VERSION: 4.8
running: ‘“C:\dev\android-ndk-r9d\ndk-build” -C E:\mygame\proj.android -j2 NDK_M
ODULE_PATH=E:\mygame\proj.android…/cocos2d;E:\mygame\proj.android…/cocos2d/c
ocos;E:\mygame\proj.android…/cocos2d/external NDK_TOOLCHAIN_VERSION=4.8 NDK_DE
BUG=1’
Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersi
on 9 in ./AndroidManifest.xml
make.exe: Entering directory E:/mygame/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 : libcocos2dcpp.so Install : libcocos2dcpp.so => libs/armeabi/libcocos2dcpp.so make.exe: Leaving directory E:/mygame/proj.android’
building apk
running: ‘“C:\Cocos\tools\ant\bin\ant” clean debug -f E:\mygame\proj.android\bui
ld.xml -Dsdk.dir=“C:\dev\sdk”’
文件名、目录名或卷标语法不正确。
Error running command, return code: 1
Traceback (most recent call last):
File “E:\mygame\proj.android\build_native.py”, line 43, in
build(opts.build_mode)
File “E:\mygame\proj.android\build_native.py”, line 28, in build
raise Exception(“Build dynamic library for project " + app_android_root +
" ] fails!”)
Exception: Build dynamic library for project E:\mygame\proj.android…/ ] fail
s!
E:\mygame\proj.android>