在eclipse中,右击项目-》属性-》C++ Build中去掉默认的编译方法make,改成->android-ndk-r10d\ndk-build.cmd,即可。
但是有可能会报错:
Cocos2dx Android环境编译出错:jni/Android.mk: Cannot find module with tag 'scripting/lua-bindings' in import path
$(callimport-add-path,D:\SDK\cocos\cocos2d-x-3.0)\
$(callimport-module,scripting/lua-bindings) 原文链接:https://www.f2er.com/cocos2dx/339862.html