For starting, I create only MainMenuLayer and able to successfully compile over the iOS platform. However, if I try to use same code on Android platform. It fails to compile. For troubleshooting, I tried to compile TestCpp over Android and it is working fine.
I am unable to dig further that why my project source code is not compiling over Android.
I am getting following error:-
...Classes/MainMenuLayer.h:24: undefined reference to `vtable for MainMenuLayer'
I already tried the method about implementing the constructor in cpp but still it is not working and then the error message is undefined reference to `MainMenuLayer::MainMenuLayer()'