Gradle build error, Unity Android Build

preview_player
Показать описание
When you get the error "Gradle build failed, check the console", there is a good chance that you only need to agree to the SDK licenses.

To be certain, check the console and scroll through the errors, you should find a paragraph titled "What went wrong"

Well anyhow, to sign the license agreements, follow these steps.
- Go to the SDK directory installed by Unity, then go to tools, then bin
- in Windows Explorer, write cmd instead of the path
....... you could also use cd C:\Path\To\Android\Sdk\tools\bin
- in cmd, write:
- in cmd, now write:
sdkmanager --licenses

You will have to keep writing "y" to accept the licenses.
Later write sdkmanager --licenses again to check if all licenses have been accepted
Рекомендации по теме
Комментарии
Автор

Hi, when I run sdkmanager --licenses I get "Exception in thread "main" I'm using the SDK and JDK installed with Unity like you but my version is 2022.3.27f1. Any suggestion?

marcoabbatangelo
visit shbcf.ru