********************* N2n1GAME(n2n1.cn)移动端开始编译 *********************
请按任意键继续. . .
C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin
已复制 1 个文件。
已复制 1 个文件。
E:\N2n1Game>CALL cocos compile -p android --android-studio -m release
编译模式:release
使用 Android Studio 工程:E:\N2n1Game\frameworks\runtime-src\proj.android-studio
未指定 Android 目标平台版本,自动查找一个可用版本...
正在执行:'"D:\android-sdk-windows\tools\android" update project -t android-21 -p E:\N2n1G
ame\frameworks\runtime-src\proj.android-studio\app'
Updated project.properties
Updated local.properties
Updated file E:\N2n1Game\frameworks\runtime-src\proj.android-studio\app\proguard-project.t
xt
正在执行 ndk-build...
NDK 编译模式:release
NDK_TOOLCHAIN_VERSION: 4.9
正在执行:'"D:\android-sdk-windows\ndk-bundle\ndk-build" -C E:\N2n1Game\frameworks\runtime
-src\proj.android-studio\app -j8 NDK_MODULE_PATH=E:\N2n1Game\frameworks\runtime-src\proj.a
ndroid-studio\../../cocos2d-x;E:\N2n1Game\frameworks\runtime-src\proj.android-studio\../..
/cocos2d-x/cocos/;E:\N2n1Game\frameworks\runtime-src\proj.android-studio\../../cocos2d-x/e
xternal;E:\N2n1Game\frameworks\runtime-src\proj.android-studio\../../cocos2d-x/cocos/scrip
ting NDK_TOOLCHAIN_VERSION=4.9'
make.exe: Entering directory `E:/N2n1Game/frameworks/runtime-src/proj.android-studio/app'
[armeabi-v7a] Prebuilt : libBugly.so <= jni/../../../prebuilt/android/armeabi-v7a/
[armeabi-v7a] Prebuilt : libmp3lame.so <= jni/../../../prebuilt/android/armeabi/
[armeabi-v7a] Install : libBugly.so => libs/armeabi-v7a/libBugly.so
[armeabi-v7a] Install : libmp3lame.so => libs/armeabi-v7a/libmp3lame.so
[armeabi-v7a] StaticLibrary : libluacocos2d.a
[armeabi-v7a] StaticLibrary : libsimulator.a
[armeabi-v7a] StaticLibrary : libcrashreport.a
[armeabi-v7a] StaticLibrary : libbuglyagentlua.a
[armeabi-v7a] StaticLibrary : libiconv.a
[armeabi-v7a] StaticLibrary : libcocos2d.a
[armeabi-v7a] StaticLibrary : libcocostudio.a
[armeabi-v7a] StaticLibrary : libcocosbuilder.a
[armeabi-v7a] StaticLibrary : libcocos3d.a
[armeabi-v7a] StaticLibrary : libspine.a
[armeabi-v7a] StaticLibrary : libui.a
[armeabi-v7a] StaticLibrary : libcocosdenshion.a
[armeabi-v7a] StaticLibrary : flatbuffers.a
[armeabi-v7a] StaticLibrary : libextension.a
[armeabi-v7a] StaticLibrary : libaudioengine.a
[armeabi-v7a] StaticLibrary : libbox2d.a
[armeabi-v7a] StaticLibrary : libnetwork.a
[armeabi-v7a] StaticLibrary : libvorbisidec.a
[armeabi-v7a] StaticLibrary : libpvmp3dec.a
[armeabi-v7a] StaticLibrary : librecast.a
[armeabi-v7a] StaticLibrary : libandroid_support.a
[armeabi-v7a] StaticLibrary : libluacocos2dandroid.a
[armeabi-v7a] StaticLibrary : libcocos2dandroid.a
[armeabi-v7a] StaticLibrary : libcocos2dxinternal.a
[armeabi-v7a] StaticLibrary : libcpufeatures.a
[armeabi-v7a] SharedLibrary : libmmyx_yl.so
[armeabi-v7a] Install : libmmyx_yl.so => libs/armeabi-v7a/libmmyx_yl.so
make.exe: Leaving directory `E:/N2n1Game/frameworks/runtime-src/proj.android-studio/app'
正在生成 apk 文件...
Traceback (most recent call last):
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\/cocos.py", line 929,
in <module>
run_plugin(command, argv, plugins)
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\/cocos.py", line 854,
in run_plugin
plugin.run(argv, dependencies_objects)
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\plugins\plugin_compile\pro
ject_compile.py", line 1544, in run
self.build_android()
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\plugins\plugin_compile\pro
ject_compile.py", line 527, in build_android
self.apk_path = builder.do_build_apk(build_mode, self._no_apk, output_dir, self._custo
m_step_args, self)
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\plugins\plugin_compile\bui
ld_android.py", line 545, in do_build_apk
self._copy_resources(custom_step_args, assets_dir)
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\plugins\plugin_compile\bui
ld_android.py", line 651, in _copy_resources
cocos.copy_files_with_config(cfg, app_android_root, assets_dir)
File "C:\Cocos\Cocos2d-x\cocos2d-x-3.10\tools\cocos2d-console\bin\cocos.py", line 677, i
n copy_files_with_config
src_dir = config["from"]
KeyError: 'from'
请按任意键继续. . .
解决方法:
|