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

Fresh install of 2021.2.17.f1 whenever I try to build out any game for android. I have done nothing to the install, everything is set as unity has installed it. yes I have android studio installed on my machine. and yes my keystore is signed.

I reinstall and restart my computer and keep getting this error.

I was having the same issue,
I get to fix this by:
The problem with me was, Path Variables not set to Unity installed JDK. Then
I go to Edit > Preferenced > External Tools


Opened the Environment Variables Settings. and create a new for my user Twinzy with Variable Name: JAVA_HOME and paste the path copied.


And Step 3 Restart the Computer. Now again try to build. This worked for me.

do you solved your problem? facing same issue