Android build issue with CocoCreator 2.0.0

Hi Guys,

I am very new to Cocos2d and CocosCreator. Already have javascript experience.
Now i am trying to develop games for HTML5, Android & iOS platform. so why choosed Cocos2d which is very powerful tool to develop cross platform games.

Facing problem with generating Android Build (APK).

Just tried with HelloWorld project. I converted this cocos2d HelloWorld project into Android studio project by Build option which is available in CocosCreator.

While open the android studio project in Android studio i got below error while Gradle Sync.

Build command failed.

Error while executing process /Users/nancyzane/Library/Android/sdk/ndk-bundle/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/nancyzane/Documents/SELVAM/WORK/learning/cocos2d/NewProject/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/jni/Android.mk NDK_APPLICATION_MK=/Users/selva/Documents/SELVAM/WORK/learning/cocos2d/NewProject/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/jni/Application.mk APP_ABI=x86 NDK_ALL_ABIS=x86 NDK_DEBUG=0 APP_PLATFORM=android-21 NDK_OUT=/Users/nancyzane/Documents/SELVAM/WORK/learning/cocos2d/NewProject/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/obj NDK_LIBS_OUT=/Users/nancyzane/Documents/SELVAM/WORK/learning/cocos2d/NewProject/build/jsb-link/frameworks/runtime-src/proj.android-studio/app/build/intermediates/ndkBuild/release/lib NDK_TOOLCHAIN_VERSION=4.9 NDK_MODULE_PATH=/Applications/CocosCreator.app/Contents/Resources/cocos2d-x:/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/cocos:/Applications/CocosCreator.app/Contents/Resources/cocos2d-x/external -j4 NDK_DEBUG=0 APP_SHORT_COMMANDS=false LOCAL_SHORT_COMMANDS=false -B -n}

Android NDK: Invalid APP_STL value: gnustl_static

Android NDK: Please use one of the following instead: none system c++_static c++_shared

*** Android NDK: Aborting . Stop.

Installed Software versions

Mac OS X EI Capitan 10.11.6
Cocoscreator 2.0.0
Android Studio 3.1.4
NDK r18
Gradle version 4.4
Android Plugin verison 3.1.0
Android Plugin Repository jcenter, google()
Default Library Repository jcenter
java version “10.0.1” 2018-04-17
Java™ SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot™ 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode)

Any one help to take successful APK

Thanks in advance.

gnustl_static have been removed in NDK r18, but creator 2.0.x or below is still still using. please keep the ndk version r17 or lower.

creator 2.1 wiil update to c++_static

Thanks for the reply drelaptop, will check and update the status.

@drelaptop, thanks now i can generated APK successfully. i downgrade the NDK version to 16b from r18.

One more clarification simple HelloWorld project APK taking 15Secs to getting display in android device.

Any one can help to optimize the loading time.

Thanks.