I’ve had problems in every way imaginable. Using the outdated Solar2D from the snap store, I can do everything except generate the APK, because Solar2D doesn’t have access to the local Java on the machine, both via snap and running via Wine. I also tried compiling the code for Linux using AI and some online tutorials; I even managed to get it working, but it was extremely slow and not at all useful.
In short: I have macOS in dual boot and I boot into my Mac when I want to use Solar2D.