Search code examples
javafxgluongluon-mobile

Can we build Gluon Mobile for Android (APK) from Windows without installing Linux?


From gluon documentation it say that

Currently, Android can be built only on Linux OS (or from Windows WSL2).

but if I run this gluon sample that use gradle, I can run this sample on my android device and able to build the APK.

The problem when I build the project from scrath using gluon plugin that integrated with IDE, I'm not able to run the sample on my device without changing any generated code. I already try gradle or maven as build tool.


Solution

  • For now, it's not possible to build an Android package (APK) from Windows. But we can use WSL (Windows Subsystem for Linux) and run all the commands from the Linux command. You can get WSL from Microsoft Store and it's really easy to install. So we can code and run on Windows to see the output of the app and use Linux ONLY when we want to deploy on Android.