Problem with cocos2dx 3.17.2 c++ Android

Classes/AppDelegate.cpp:132: error: undefined reference to ‘SettingsLayer::createScene()’
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

I was trying to upgrade my project to version 3.17.2 c++, I’m getting these errors.
SettingsLayer is the first screen I have to launch in my game. I have put SettingsLayer.h header in the include AppDelegate.cpp. It works in iOS version with XCode but it’s not working in Android Studio and cocos console command line both.
Please help!!!

look at CMakeLists if you are using CMake. ou may also want to familiarize yourself with Android.mk and Application.mk

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