Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 (908213)

Im trying to make a game but every single time i build the project it says sends picked up java… the full error is this:
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

FAILURE: Build failed with an exception.

  • Where:
    Settings file ‘C:\Users\Lucas\OneDrive\Escritorio\My project\Library\Bee\Android\Prj\IL2CPP\Gradle\settings.gradle’ line: 13

  • What went wrong:
    A problem occurred evaluating settings ‘Gradle’.

Could not find method dependencyResolutionManagement() for arguments [settings_ektc245urtz0vogrwku5rhw42$_run_closure1@36da9c5f] on settings ‘Gradle’ of type org.gradle.initialization.DefaultSettings.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

BUILD FAILED in 730ms

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Im using Unity 2022.2.5f1
Using Oculus Integration Plugin

Try this post : Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 - Questions & Answers - Unity Discussions

I have the same issue. But on Mac.
Unity 2021.3.29f1
deleted library cache, rebuilded graddle.
on player → settings → player - > Publishing settings → Use R8 is disabled
nothing ;(

exact issue on 2021.3.21

Did anyone find a solution for this? Have the same issue on 2022.3.22 and could not find any solution so far

For anyone struggling with the same issue - it happens because of the old gradle version. My problem was that I didn’t notice that in external tools I used custom gradle