Atal error: extensions/cocos-ext.h: No such file or directory #include "extensions/c

用3.0 控制台新建 工程, XCODE 模拟器正常运行,

编译 android 报错 输出 :

jni/…/…/Classes/HelloWorldScene.h:5:34: fatal error: extensions/cocos-ext.h: No such file or directory
#include “extensions/cocos-ext.h”
^
compilation terminated.
In file included from jni/…/…/Classes/AppDelegate.cpp:2:0:
jni/…/…/Classes/HelloWorldScene.h:5:34: fatal error: extensions/cocos-ext.h: No such file or directory
#include “extensions/cocos-ext.h”
^
compilation terminated.
make: *** Error 1
make: *** Waiting for unfinished jobs…
make: *** Error 1
make: Leaving directory `/Users/apple02/Android/TestNewGame/TestNewGame/proj.android’
Traceback (most recent call last):
File “./build_native.py”, line 166, in
build(opts.ndk_build_param,opts.android_platform,opts.build_mode)
File “./build_native.py”, line 153, in build
do_build(cocos_root, ndk_root, app_android_root,ndk_build_param,sdk_root,android_platform,build_mode)
File “./build_native.py”, line 89, in do_build

raise Exception("Build dynamic library for project  " + app_android_root + " ] fails!")
1赞

我也遇到这个问题,求大神指教

按照图示的方法修改.mk文件就可以了。

我怎么按照这个做了 还是提示 nosuch file …

成功 了,感谢 。