The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

+1 vote

Hi there, having some trouble compiling the godot sourcecode for android on Windows OS. I am not using WSL.

Android SDK and NDK are installed. Environment Variables are set up correctly.
When i try to run scons command for android platform i get the error that android is not available as platform:

'PS E:\Repositories\godot\godot> scons platform=android target=release android_arch=arm64v8
scons: Reading SConscript files ...
Invalid target platform "android".
The following platforms were detected:


Please run SCons again and select a valid platform: platform=<string>

Installed SDKs (API Level) are: 29, 26 and 24

Have no idea what is missing

in Engine by (53 points)

1 Answer

+1 vote

This occurs when scons cannot find the android sdk/ndk. The following environment variables need to be set:


Example of paths on my windows machine with sdk/ndk install via android studio:


Additionally, don't forget to restart your terminal after setting these variables.

by (16 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.