Stuck on Compiling in Cocos creator android project

Hello I’m trying to compile for android-19 but is getting stuck at the begining, there isn’t any error showing up, however this is what native.log is showing:

Building mode: release
Using Android Studio project : /Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/runtime-src/proj.android-studio
running: '/Users/it4up/Library/Android/sdk/tools/android update project -t android-19 -p /Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/runtime-src/proj.android-studio/app’

Updated project.properties
Updated local.properties
Updated file /Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/runtime-src/proj.android-studio/app/proguard-project.txt
Building native…
NDK build mode: release
running: '/Volumes/eGO/android-ndk-r16b-darwin-x86_64/android-ndk-r16b/ndk-build -C /Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/runtime-src/proj.android-studio/app -j4 APP_ABI=“armeabi-v7a armeabi” NDK_MODULE_PATH=/Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/cocos2d-x:/Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/cocos2d-x/cocos:/Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/cocos2d-x/external NDK_TOOLCHAIN_VERSION=4.9’

Android NDK: Found platform level in ./project.properties. Setting APP_PLATFORM to android-19.
Android NDK: WARNING: APP_PLATFORM android-19 is higher than android:minSdkVersion 1 in ./AndroidManifest.xml. NDK binaries will not be comptible with devices older than android-19. See https://android.googlesource.com/platform/ndk/+/master/docs/user/common_problems.md for more information.
make: Entering directory `/Users/it4up/Desktop/Projects/TheImmersionUpdated/build/jsb-default/frameworks/runtime-src/proj.android-studio/app’
/Volumes/eGO/android-ndk-r16b-darwin-x86_64/android-ndk-r16b/build/core/setup-app.mk:81: Android NDK: Application targets deprecated ABI(s): armeabi **
/Volumes/eGO/android-ndk-r16b-darwin-x86_64/android-ndk-r16b/build/core/setup-app.mk:82: Android NDK: Support for these ABIs will be removed in a future NDK release.

[armeabi-v7a] Compile++ arm : cocos2djs_shared <= main.cpp
[armeabi-v7a] Compile++ arm : cocos2djs_shared <= AppDelegate.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_extension_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_experimental_webView_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_experimental_video_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_spine_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_dragonbones_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_audioengine_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_ui_auto.cpp
[armeabi-v7a] Compile++ arm : cocos2d_js_static <= jsb_cocos2dx_network_auto.cpp

It’s been like this for 30 minutes and I don’t know how to make it work. Any help is welcome.

Many Thanks :smiley:

hi mate

try ndk-r13b , i hope it fix your issue :wink:

1 Like

Thank you! With ndk-r13b doesn’t get stuck anymore but I’m still having a problem, actually compile fails showing this error:

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:Godai’.
    > Failed to notify project evaluation listener.
    java.lang.NullPointerException (no error message)
    > Could not get unknown property ‘externalNativeBuildDebug’ for project ‘:Godai’ of type org.gradle.api.Project.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output.

BUILD FAILED

I don’t know how to continue from this point,
Any tips?

Thanks :slight_smile:

hi again ,

hmmm , try and clean and rebuild the project in android studio , i guess there is still old nativeBuildDebug outputs in project.

1 Like

Okay I finally solved it, I had my ndk outside from the folder ndk-bundle inside the sdk folder. So the ndk-bundle folder was actually empty, that was making the build fail.

I’m sorry it wasn’t relationed with the ndk, however, many thanks :smiley:

oh nice , glad to hear your up and running again.
i didn’t know creator works with ndk-r16b. thanks