Cocos2d-x v3.17 not responding the changes of Android.mk

I Compiled project of Cocos2d-x v3.17.1 and Cocos2d-x v3.17.2 using NDK r16 on terminal as

cocos compile -p android --android-studio
and on Android Studio 3.0

Android.mk is not reflecting the changes. When i delete the class references, it still work fine.
16%20PM

if i update the classes in CMakeLists.txt then updated classes work

But I want Android.mk to respond on the changes. I have to integrate SDK-box, as making changes in Android.mk is mandatory process.

Two solutions:

  1. change proj.android/gradle.properties:
    PROP_BUILD_TYPE=ndk-build
    Now it will use Android.mk files to build

  2. Continue use cmake (I prefer this solution) and use SDKBOX from CMakeLists.txt in root of your project:
    SDKBox 2.4.3.0 bugfix

2 Likes

change proj.android/gradle.properties :
PROP_BUILD_TYPE=ndk-build
Now it will use Android.mk files to build

but sdkbox supports CMakeLists.txt when cocos2d-x >= 3.17.1

Thanks,

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.