Cocos2d-x crashing on launch SIGSEGV GLThread 12306 Android Studio

Hey folks,

I have a few older games, 2.2.6 and some 3.1.7, most I have managed to get working in Android Studio, and to compile in terminal using build_native.sh

It compiles fine and builds the lib fine.

However a couple of the games crash on launch, and I can’t figure out why, here are some debug messages from one of the games that crashes on launch;

2022-11-18 13:18:15.376 10043-10043/? A/DEBUG: backtrace:
2022-11-18 13:18:15.377 10043-10043/? A/DEBUG: #00 pc 0018242a /data/app/com.zepps.tydoctor-1/lib/arm/libgame.so (_ZN11SplashScene4initEv+81)
2022-11-18 13:18:15.377 10043-10043/? A/DEBUG: #01 pc 00182399 /data/app/com.zepps.tydoctor-1/lib/arm/libgame.so (_ZN11SplashScene5sceneEv+84)
2022-11-18 13:18:15.377 10043-10043/? A/DEBUG: #02 pc 0016509f /data/app/com.zepps.tydoctor-1/lib/arm/libgame.so (_ZN11AppDelegate29applicationDidFinishLaunchingEv+78)
2022-11-18 13:18:15.377 10043-10043/? A/DEBUG: #03 pc 00223567 /data/app/com.zepps.tydoctor-1/lib/arm/libgame.so (_ZN7cocos2d13CCApplication3runEv+6)
2022-11-18 13:18:15.377 10043-10043/? A/DEBUG: #04 pc 0159dba5 /data/app/com.zepps.tydoctor-1/oat/arm/base.odex (offset 0x14d6000)

I have looked in the files but it’s not something I seem to be able to figure out, any ideas?

Thanks in advance!