Cocos2d 3.17.1 js android build fails

Cocos2d 3.17.1 js android build fails
0

#1

Hi,

I’ve downloaded cocos2d 3.17.1 and created new js project.
Build for android fails:

cocos compile -p android
...
ninja: build stopped: .
ninja: error: mkdir(engine/external/android-specific/cpufeatures/CMakeFiles/ext_cpufeatures.dir/C_/dev/libs/android-ndk-r17/sources/android/cpufeatures): No such file or directory

Also tried new C++ project and it builds ok for android.

NDK r17
Android Studio 3.2.1 (latest)
OS: windows 7 x64


Cocos2d-x v3.17.1 released!
#2

@dimon4eg Thanks. I will try testing this on my end.


#3

It builds ok after I moved the js project from
C:\dev\libs\cocos2d-x-3.17.1\NEW_PROJECTS_DIR\
to
C:\

It seems some issue with path, but strange because C++ project builds ok in
C:\dev\libs\cocos2d-x-3.17.1\NEW_PROJECTS_DIR\


#4

@drelaptop what do you think about this?


#5

the folder structure of JS/Lua project is quite different for C++ project, more deep for JS/Lua, so that easy long path error.

// for `Classes` folder
<path-to-project>/frameworks/runtime-src/Classes // JS/Lua project
<path-to-project>/Classes //