Hey there i am trying for hours to make an Android Build with Unity 2021.2.18f. No matter what i tried, it doesn’t work.
The first thing i get is a prompt to update the Android build tool currently installed. When i click yes, i get some error messages i will add to this Question. Some folders could not be accessed or created. If i click “Highest Version” i get different error messages.
WARNING: The option setting ‘android.enableR8=false’ is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
To suppress this warning, remove “buildToolsVersion ‘28.0.3’” from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.
WARNING: The specified Android SDK Build Tools version (28.0.3) is ignored, as it is below the minimum supported version (29.0.2) for Android Gradle Plugin 4.0.1.
Android SDK Build Tools 29.0.2 will be used.
Exception while marshalling
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ‘:launcher:compileReleaseJavaWithJavac’.
Failed to install the following Android SDK packages as some licences have not been accepted.
build-tools;29.0.2 Android SDK Build-Tools 29.0.2
To build this project, accept the SDK license agreements and install the missing components using the Android Studio SDK Manager.
Alternatively, to transfer the license agreements from one workstation to another, see Sign in - Google Accounts
How can i even accept SDK licenses for the in unity installed Android Studio Version?
I tried to find some info about these Problems but all i have found did not work so far.
Does someone know whats going on?