Quantcast
Channel: Cocos中文社区 - 最新主题
Viewing all articles
Browse latest Browse all 88737

【新手求助】cocos creator编译android报错

$
0
0

@zhqrep 写道:

如题,编译的是教程里接星星的工程,下面是native.log的内容

Building mode: release
Using Eclipse project : /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android
Android platform not specified, searching a default one...
running: '/Users/lulu/Desktop/tools/android22-sdk-macosx/sdk/tools/android update project -t android-20 -p /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android'

Updated project.properties
Updated local.properties
Updated file /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android/proguard-project.txt
Android platform not specified, searching a default one...
running: '/Users/lulu/Desktop/tools/android22-sdk-macosx/sdk/tools/android update lib-project -p /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/platform/android/java -t android-20'

Updated project.properties
Updated local.properties
Updated file /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/platform/android/java/proguard-project.txt
Building native...
NDK build mode: release
NDK_TOOLCHAIN_VERSION: 4.9
running: '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/ndk-build -C /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android -j8 NDK_MODULE_PATH=/Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x:/Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos:/Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/external NDK_TOOLCHAIN_VERSION=4.9'

Android NDK: WARNING: APP_PLATFORM android-19 is larger than android:minSdkVersion 9 in ./AndroidManifest.xml
make: Entering directory /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android'
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= SDKManager.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_basic_conversions.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= manualanysdkbindings.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= jsb_anysdk_protocols_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_extension_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_experimental_webView_auto.cpp
In file included from /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/base/CCAsyncTaskPool.h:28:0,
from /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/cocos2d.h:41,
from /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../manual/ScriptingCore.h:31,
from /Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/scripting/js-bindings/proj.android/../manual/cocos2d_specifics.hpp:27,
from jni/../../Classes/jsb_anysdk_basic_conversions.cpp:4:
/Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/cocos2d-x/cocos/platform/CCPlatformMacros.h:206:0: warning: "CCLOGINFO" redefined
#define CCLOGINFO(...) do {} while (0)
^
In file included from jni/../../Classes/jsb_anysdk_basic_conversions.cpp:1:0:
jni/../../Classes/jsb_anysdk_basic_conversions.h:16:0: note: this is the location of the previous definition
#define CCLOGINFO(...)
^
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/__/__/Classes/SDKManager.o] Error 1
make: *** Waiting for unfinished jobs....
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/hellojavascript/main.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/__/__/Classes/AppDelegate.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2d_js_static/__/auto/jsb_cocos2dx_experimental_webView_auto.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/__/__/Classes/jsb_anysdk_basic_conversions.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/__/__/Classes/jsb_anysdk_protocols_auto.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2djs_shared/__/__/Classes/manualanysdkbindings.o] Error 1
arm-linux-androideabi-g++: error trying to exec '/Users/lulu/Desktop/tools/android-ndk-r10e-macosx/android-ndk-r10e/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9/../../../../arm-linux-androideabi/bin/as': execv: Exec format error
make: *** [obj/local/armeabi-v7a/objs/cocos2d_js_static/__/auto/jsb_cocos2dx_extension_auto.o] Error 1
make: Leaving directory
/Users/lulu/Desktop/study/tutorial-first-game-master/tutorial-first-game-master/complete_project/build/jsb-default/frameworks/runtime-src/proj.android'
Error running command, return code: 2.

帖子: 1

参与者: 1

阅读整个主题


Viewing all articles
Browse latest Browse all 88737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>