Search Unity

Question Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8

Discussion in 'VR' started by OffDelpro8, Feb 4, 2023.

  1. OffDelpro8

    OffDelpro8

    Joined:
    Aug 21, 2022
    Posts:
    1
    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
     

    Attached Files:

  2. nilagard

    nilagard

    Joined:
    Jan 13, 2017
    Posts:
    77
  3. Asinello

    Asinello

    Joined:
    Jan 12, 2021
    Posts:
    5
    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 ;(
     
  4. juan_homa

    juan_homa

    Joined:
    Aug 18, 2023
    Posts:
    25
    exact issue on 2021.3.21
     
  5. PinkPanter

    PinkPanter

    Joined:
    Sep 26, 2013
    Posts:
    4
    Did anyone find a solution for this? Have the same issue on 2022.3.22 and could not find any solution so far
     
  6. PinkPanter

    PinkPanter

    Joined:
    Sep 26, 2013
    Posts:
    4
    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