Guys i´m desperate.. I tried to compile Godot for an Android Template to shrink the apk size. A year ago it worked.. But i dont have the configuration anymore.
Whenever i try to use scons platform=android .. there is no platform for android.
Can somebody give me his configuration? NDK number, OpenJDK version etc...
I think my fault is, that Im using wrong version number of cmake or something

Anybody an idea?
Greetings

I tried everything so far from the documentation. Does it need to be the exact same version numbers of ndk? Yes im using godot 4

19 days later

cybereality

In the documentation, Godot is a circular reference:

https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html :

Compiling for Android
This page describes how to compile Android export template binaries from source. If you're looking to export your project to Android instead, read Exporting for Android: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html#doc-exporting-for-android

I follow the link: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html#doc-exporting-for-android :

Exporting for Android
This page describes how to export a Godot project to Android. If you're looking to compile export template binaries from source instead, read Compiling for Android: https://docs.godotengine.org/en/stable/contributing/development/compiling/compiling_for_android.html#doc-compiling-for-android

I follow the link: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html#doc-exporting-for-android :

Compiling for Android
This page describes how to compile Android export template binaries from source. If you're looking to export your project to Android instead, read Exporting for Android: https://docs.godotengine.org/en/stable/tutorials/export/exporting_for_android.html#doc-exporting-for-android

And so on ad infinitum, and as a result, there is no information on how to compile Godot for Android.

    The documentation works fine for me. Maybe try a different web browser.

    JaydenSu In the documentation, Godot is a circular reference

    No there is not, this is the main header of the documentation, do you read what is written below ?
    This is where actual documentation is for the requested topic (compiling for Android OR exporting a project to Android).

    13 days later

    Hey guys. I finally made it. I tried everything on windows and it works fine. Normally I work on Ubuntu, but I think just for the compiling part, I will use Windows. I think there are problems with the environmental variables. Even though I did everything like in the documentation. Its a workaround, but I dont want to waste too much time.

    Thank you for your help
    😃