No matter what I do, I’m getting this error, from Cocos Creator Version 1.5 and now, 1.5.1-beta.4.2
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':MyGame'.
> NDK not configured.
Download it with SDK manager.)
This is strange because things were working perfectly fine on Cocos Creator 1.4.
I also filled out the Preferences -> Native Develop field with the same exact path.
I even downloaded a separate NDK through Android Studio interface for the CocosCreator-generated project file, and set the path there. It gets wiped out for every build.
If you try to manually set the ndk.dir in the local.properties file in the same way that sdk.dir is defined, it also gets wiped out on every build.
Build from CCreator then Open android studio project from build directory. Set NDK path from project structure in android studio and run ! That how i solved my problem. But still i cant compile apk from CCreator.