Cocos compile -p android fails with Undefined reference to bsd_signal

Hello,

I am trying to compile my game to android studio on Windows 10 with command:

cocos compile -p android --android-studio --app-abi armeabi

but I get the following error:

[armeabi] SharedLibrary   :   libMyGame.so
D:/.../external/websockets/prebuilt/android/armeabi/libwebsockets.a(lws-plat-unix.c.o):lws-plat-unix.c:function
 lws_plat_context_early_init: error: undefined reference to bsd_signal
...

and so on. I tried to clean the obj/local folder to clean my project, but it didn’t work…
Any Ideas??

This bas been previously answered here: Cocos2d-x v3.12 released!

So the solution is to use ndk11 instead of ndk12 ? How can I reconfigure my cocos2d-x on windows to change the ndk path as I did in setup.py?

changing ndk12 to ndk11 doesn’t solve the problem also changing target sdk to 21 doesn’t help. What next should I try?

Check if my reply in this thread helps:

Cocos2d-x v3.13 and sdk/ndk versions