Error compiling for Android

That’s not it, I managed to compile the apk, and the problem was the java version. Since I didn’t know which version of java I should use, I ended up using java version 19.0.2 as described in the documentation for flax.
After changing JAVA_HOME to C:\Program Files\Android\Android Studio\jbr
it ended up working and the version of java that Android Studio is using or rather the version that FlaxEngine v1.5 needs is JAVA >= 20


Despite compiling the project on the cell phone, it was all blocked and the screen flickered and ended up bugging the cell phone.
Error seen:

  1. It didn’t load a level (in the windows build the main screen loads a new level which in the android build stuck on the same screen)

  2. Phone crash (my phone is medium [4GBx128GB, GPU: Vulkan 1.1 & 90 (FPS) Refresh Rate, CPU: Mediatek G35 & Arm64-v8a * armeabi-v7a)
    Some warnings:
    On the first boot it stuck my background image, stopped recognizing USB, and I had to restart the phone. considering that despite being medium, it runs several games until it is heavy!

Bug - background image

Build - Android

Build - Win64

  1. It didn’t load the level for some reason, in the android build the game was stuck on the initial screen and didn’t change the level.

  2. The screen rotates automatically, this point is not really a problem but the game/build for android rotates in every cent horizontally/vertically the ideal is to just rotate horizontally “maybe I don’t know how to configure that :thinking:

These were some of the problems I found considering that I couldn’t even open the gameplay level.