- Home /
Question by
zak666 · Mar 26 at 01:54 PM ·
errorandroid build
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.
capture.png
(59.3 kB)
capture1.png
(43.9 kB)
Comment
Answer by azeem_ehsan · Apr 08 at 03:24 AM
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.
image-2022-04-08-081212.png
(111.8 kB)
answer.png
(56.2 kB)