make: *** [obj/local/armeabi/objs-debug/cocosdenshion_static/SimpleAudioEngine.o] Error 1

NDK_ROOT = /Users/apple/Documents/android-ndk-r9
COCOS2DX_ROOT = /Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android/../..
APP_ROOT = /Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android/..
APP_ANDROID_ROOT = /Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android
Using prebuilt externals
Android NDK: WARNING: APP_PLATFORM android-14 is larger than android:minSdkVersion 8 in ./AndroidManifest.xml    
Android NDK: WARNING:/Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android/../../cocos2dx/Android.mk:cocos2dx_static: LOCAL_LDLIBS is always ignored for static libraries    
make: Entering directory `/Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android'
Gdbserver      : [arm-linux-androideabi-4.6] libs/armeabi/gdbserver
Gdbsetup       : libs/armeabi/gdb.setup
Compile++ thumb  : cocosdenshion_static <= SimpleAudioEngine.cpp
/Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android/../../CocosDenshion/android/SimpleAudioEngine.cpp: In constructor 'CocosDenshion::SimpleAudioEngine::SimpleAudioEngine()':
/Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android/../../CocosDenshion/android/SimpleAudioEngine.cpp:161:2: error: format not a string literal and no format arguments [-Werror=format-security]
cc1plus: some warnings being treated as errors

make: *** [obj/local/armeabi/objs-debug/cocosdenshion_static/SimpleAudioEngine.o] Error 1

make: Leaving directory `/Users/apple/Documents/cocos2d-2.0-x-2.0.2/GameApp/proj.android'

找到提示的行数,屏蔽掉LOGD代码!

你可能感兴趣的:(Cocos2dx)