Ok thanks again, I downloaded and will try that.
The game compiles with SDL2 32/64 bit linux ok, but I note that the SDL build scipt copies the files before compiling, the header file sdlwio.h needs to be present, as well as sdlwio.c and sconnex.c.
You could just replace #include “sdlwio.h” in both c files with the content of sdlwio.h, to avoid path problems.
What version of the ndk and sdk are you using?
But I do wonder now whether to try another setup with a new xubuntu, not bother with studio and download exact versions of the jdk, sdk, ndk, gradle, and cmdline tools in an exact setup. ie:
wget https://dl.google.com/android/repository/android-ndk-r29-beta1-linux.zip
was the automatic download that studio did. But maybe the SDL2 androidbuild.sh script isnt compatible with that beta? It was trying to download ndk ver 25, but failing to do so.
But maybe something like gradle will just ignore that insist some other download?