So why? why is again buged? also, all my other projects that are on older versions of Unity (Unity 2021) are also failing to build because of this and it was working before i installed Unity 6 -.-"
Edit: if i use echo %JAVA_HOME% on cmd, it shows that the directory is:
C:\Program Files\Unity\Hub\Editor\6000.0.20f1\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK
Sorry i do not understand what are you talking, i can’t see any “Dependency resolver” on the package manager, i get a file from that github and it has a package called “external dependency manager latest” i imported that on the project, then i guess i have to go to: Assets > mobile dependency resolver > android resolver > delete resolved libraries… ? i did it and if i click “resolve” it shows the same error, so i guess is not working either
Is also showing this message when i try to play it on editor:
Update edit:
There is also this error Unexpected transport error from import worker 9. code=10054 error=An existing connection was forcibly closed by the remote host.
Update 2.0: Yes all the objects are “read/write” enabled, the problems persists
I asume it has to be with this JAVA_HOME error because this does not happens with the project on an older version of Unity
Not happy about it, but it works at least, here is how:
Since Unity keeps looking for the JDK in an old path no matter what you do, the video instructs to create a junction at that lookup location. Worked for me.
Here is my bat script that does this for you, fill in your Versions and run as admin
::Fill in Editor Version that Unity uses to look for OpenJDK (The one indicated in the pop-up)
set "FAULTY_LOCKED_VERSION=2020.3.12f1"
set "CORRECT_VERSION=6000.1.4f1"
::Create Directory Path
mkdir "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\"
mkdir "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\Editor"
mkdir "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\Editor\Data"
mkdir "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\Editor\Data\PlaybackEngines"
mkdir "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\Editor\Data\PlaybackEngines\AndroidPlayer"
::Final Folder is created as Junction to redirect to actual OpenJDK
mklink /j "C:\Program Files\Unity\Hub\Editor\%FAULTY_LOCKED_VERSION%\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK" "C:\Program Files\Unity\Hub\Editor\%CORRECT_VERSION%\Editor\Data\PlaybackEngines\AndroidPlayer\OpenJDK"
pause
EDIT: I suspect this might also be a project related bug at times, there might be some android file in my project that causes this lookup… this seems to also Fix the problems: