Gradle Build Failed. Googled everything. Couldn't solve it

Tried porting to Android. Says “Gradle build failed. Check Console”
Console says

1 incompatible Daemon could not be reused
SDK is probably read only.
JAVA_TOOL_OPTIONS

Its a small 100 MB game. Works In editor and using unity remote. Tried building a blank project. Same problem. Installed new version of unity. Installed compatible version of Gradle. Didn’t work.

Can anybody help me? Or is this the end of my android journey?

Share full error text, please

Its in the screenshot below

It shows only a title of error, not its contents. Can you attach Editor.log?

Here you go. I have no idea how to upload log files so i converted them into txt.

9647246–1372208–Editor.txt (85 KB)
9647246–1372211–Editor-prev.txt (262 KB)

Your error is

Could not determine the dependencies of task ':unityLibrary:mobilenotifications.androidlib:compileReleaseJavaWithJavac'.
> Failed to install the following Android SDK packages as some licences have not been accepted.
     platforms;android-33 Android SDK Platform 33
  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 http://d.android.com/r/studio-ui/export-licenses.html
 
  Using Android SDK: C:\Program Files\Unity\Hub\Editor\2022.3.19f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK

Try this:

  • Delete C:\Program Files\Unity\Hub\Editor\2022.3.19f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\android-33
  • Restart Unity
  • Select API 33 in Player Settings Target API
  • Try to build, it should succeed now.
    (You can change target API to something else later)