Was getting this error when trying to compile a Godot-Kotlin project:
Eventually worked out that something was looking for $ANDROID_SDK_ROOT/platforms, which didn't exist on my system. The ANROID_SDK_ROOT environment variable was set, but the platforms folder was empty. I had to install the android-platform package for it to work. Alternatively, un-setting ANDROID_SDK_ROOT also seems to work since I'm not compiling for Android.
Error message could probably be made clearer. Took a lot of effort to track down what the error was.
Was getting this error when trying to compile a Godot-Kotlin project:
Eventually worked out that something was looking for
$ANDROID_SDK_ROOT/platforms
, which didn't exist on my system. TheANROID_SDK_ROOT
environment variable was set, but the platforms folder was empty. I had to install the android-platform package for it to work. Alternatively, un-settingANDROID_SDK_ROOT
also seems to work since I'm not compiling for Android.Error message could probably be made clearer. Took a lot of effort to track down what the error was.