Cocos2dx 3.17 android compile time error

i have not any solution for that i did not do any mistake in code.
this is happen only in android
this is my android.mk
am i missing any thing in this ?
@owen

LOCAL_PATH := $(call my-dir)

include $(CLEAR_VARS)

LOCAL_MODULE := MyGame_shared

LOCAL_MODULE_FILENAME := libMyGame

MY_FILES_PATH := $(LOCAL_PATH)
$(LOCAL_PATH)/…/…/…/Classes

MY_FILES_SUFFIX := %.cpp
%.c
%.cc

My_All_Files := $(foreach
src_path,$(MY_FILES_PATH),
$(shell
find
$(src_path)
-type
f)
)
My_All_Files := $(My_All_Files:$(MY_CPP_PATH)/./%=$(MY_CPP_PATH)%)
MY_SRC_LIST := $(filter
$(MY_FILES_SUFFIX),$(My_All_Files))
MY_SRC_LIST := $(MY_SRC_LIST:$(LOCAL_PATH)/%=%)

LOCAL_SRC_FILES := $(MY_SRC_LIST)
LOCAL_CPPFLAGS := -DSDKBOX_ENABLED
LOCAL_LDLIBS := -landroid
-llog
LOCAL_C_INCLUDES := $(LOCAL_PATH)/…/…/…/Classes
LOCAL_WHOLE_STATIC_LIBRARIES := PluginSdkboxAds
sdkbox
PluginUnityAds
PluginAdMob
PluginChartboost
PluginGoogleAnalytics
PluginIAP
PluginSdkboxPlay

_COCOS_HEADER_ANDROID_BEGIN

_COCOS_HEADER_ANDROID_END

LOCAL_STATIC_LIBRARIES := cc_static

_COCOS_LIB_ANDROID_BEGIN

_COCOS_LIB_ANDROID_END

include $(BUILD_SHARED_LIBRARY)
$(call import-add-path, $(LOCAL_PATH))

$(call import-module, cocos)
$(call import-module, ./sdkbox)
$(call import-module, ./PluginSdkboxAds)
$(call import-module, ./PluginUnityAds)
$(call import-module, ./PluginAdmob)
$(call import-module, ./PluginChartboost)
$(call import-module, ./PluginGoogleAnalytics)
$(call import-module, ./PluginIAP)
$(call import-module, ./PluginSdkboxPlay)

_COCOS_LIB_IMPORT_ANDROID_BEGIN

_COCOS_LIB_IMPORT_ANDROID_END

So today I was trying ProgressTimer, it compiled. But when I used ProgressFromTo, it did not compile, instead it gave me this exact error mentioned in the question. Using Cocos2dx 3.17.1, NDK 16b

1 Like

Edit Android.mk

Add this line to your LOCAL_SRC_FILES := $(LOCAL_PATH)/…/…/…/cocos2d/cocos/ui/UILoadingBar.cpp

It seems you have modified your Android.mk file to reduce time to add each .cpp file. I don’t know whether it will work for you or not, but it worked for me. :slight_smile:

1 Like

Thanks. Let’s make a GitHub issue and ask engineering to take a look.

thank you its work for me :grinning:

Great and glad to help…

Shall I create the issue?

ya you can create issue

please do and tag @slackmoehrle in it please.