The command "yes | sdkmanager --licenses" failed, Android Kotlin

In case you are stuck with the issue please have a look at: Failed to install the following Android 30 SDK - maybe it helps.