cocos2d / cocos2d-js

cocos2d-x for JS
http://www.cocos2d-x.org
MIT License
1.86k stars 490 forks source link

use plugin-x on android error #697

Closed moto2002 closed 10 years ago

moto2002 commented 10 years ago

i have use the cocos2d-x js v3.0r2 to do a game,but when i use the plugin-x with admob following the doc http://cocos2d-x.org/docs/manual/framework/html5/jsb/plugin-x/how-to-use-plugin-x-on-android/en

jni/../../Classes/AppDelegate.cpp:29:41: fatal error: jsb_cocos2dx_pluginx_auto.hpp: No such file or directory

include "jsb_cocos2dx_pluginx_auto.hpp"

any help please!

thanks very much!

zhaijialong commented 10 years ago

Hi, @moto2002 Please have a look at your jni/Android.mk, does it have these:

LOCAL_WHOLE_STATIC_LIBRARIES += jsb_pluginx_static

$(call import-module,cocos2d-x/plugin/jsbindings)

If not , try to add it manually.

moto2002 commented 10 years ago

yes,that 's right,after remove the import-module with protocols/android and add above ,i work well thanks very much!