Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

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

Discussion in 'Getting Started' started by Tuanda29, Jan 3, 2023.

  1. Tuanda29

    Tuanda29

    Joined:
    Jan 4, 2020
    Posts:
    3
    Hi everyone, I use Unity 2022.2.1f1 and I have an issue when I try to build my project for Android (IOS work)
    Welcoming feedback and suggestions.
    Thank you so much!

    Screenshot 2023-01-03 at 16.41.04.png

    Screenshot 2023-01-03 at 16.41.30.png

    Error messages:
    =====================
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    Error: Could not find or load main class Projects.AAA.2022.2.1f1.PlaybackEngines.AndroidPlayer.SDK.cmdline-tools.6.0
    Caused by: java.lang.ClassNotFoundException: Projects.AAA.2022.2.1f1.PlaybackEngines.AndroidPlayer.SDK.cmdline-tools.6.0
    UnityEngine.GUIUtility:processEvent (int,intptr,bool&) (at /Users/bokken/build/output/unity/unity/Modules/IMGUI/GUIUtility.cs:189)
    =====================
     
    Last edited: Jan 4, 2023
  2. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Sounds like you need to reinstall your Android modules.

    Well done for successfully making a game anyway :)
     
  3. Tuanda29

    Tuanda29

    Joined:
    Jan 4, 2020
    Posts:
    3
    I tried to reinstall my SDK but it is not working.
    Do you have any other solution?
     
  4. RichAllen2023

    RichAllen2023

    Joined:
    Jul 19, 2016
    Posts:
    1,026
    Uninstall/Reinstall Unity and all the associated modules?!

    Otherwise idk?
     
  5. Tuanda29

    Tuanda29

    Joined:
    Jan 4, 2020
    Posts:
    3
    I don't know the reason why I can't build my game with Unity 2022.2.1 and 2022.2.0.
    However, I have to reinstall version Unity 2022.1.24 and then update the package manager and It works.

    Thanks for your support!
     
    RichAllen2023 likes this.