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

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!

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)

Sounds like you need to reinstall your Android modules.

Well done for successfully making a game anyway :slight_smile:

I tried to reinstall my SDK but it is not working.
Do you have any other solution?

Uninstall/Reinstall Unity and all the associated modules?!

Otherwise idk?

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!

1 Like

did you find the solution?

That’s not the actual error. If you look at the complete error message there’s a line directly below it that looks like the following, and that’s the actual error message that was generated.

CommandInvokationFailure: Failed to update Android SDK package list.

Can you show the complete error message?