Hey, there's one more error. I had to update Godot to the latest version because it needs an Android API lvl 30 that Google requires.
Updated it and downloaded the Android Build Template again.
In this new version, it's throwing the following error to me:
FAILURE: Build failed with an exception.
Where:
Build file 'C:\Users<...>\android\build\build.gradle' line: 24
What went wrong:
A problem occurred evaluating root project 'build'.
Failed to apply plugin 'com.android.internal.application'.
ANDROID_SDK_HOME is set to the root of your SDK: C:\Users<...>\cmdline-tools\bin
ANDROID_SDK_HOME was meant to be the parent path of the preference folder expected by the Android tools.
It is now deprecated.
To set a custom preference folder location, use ANDROID_USER_HOME.
It should NOT be set to the same directory as the root of your SDK.
To set a custom SDK location, use ANDROID_HOME.
EDIT: Never mind, I just deleted the ANDROID_HOME and the ANDROID_SDK_HOME and restarted Godot. It worked!