failed to delete old unity android support

Hi, i recently installed unity hub and unity 2019 (i was having 2018.3.5.f1). When i was installing unity 2019 , the android support download failed. Then, i dowloaded UnitySetup-Android-Support-for-Editor-2019.1.0f2.
It says failed to delete old android support, i do not have any unity tools opened, all are closed.
I clicked on ignore, completed the installation. But why i got this error? i do not want to get errors later.

4535668--420298--captura_unity02.jpg

2 Likes

Did you reboot first? It sounds like a process has files locked open, a reboot might clear it.

1 Like

1. Restart the PC
2. Go to:
*C:\Program Files\Unity\Hub\Editor\2019.2.6f1\Editor\Data\PlaybackEngines*
(this example is for 2019.2.6f1 but you can choose any other)

3. You will find there a folder “AndroidPlayer”. Delete that AndroidPlayer folder.
You will need to be a User with Admin rights, and this is probably why Unity fails on uninstall, it has no permission to delete the folder.

4. Go to:

(this example is for 2019.2.6f1, on the right side of the page, choose your version)

Or if using BETA version go to:

Future releases, just adapt the link or Google it.

5. On the left side of that page under Component Installers Windows (or macOS), choose Android Target Support.
6. It will download UnitySetup-Android-Support-for-Editor-2019.2.6f1.exe in this example, so run that to install. Done!

I had the same problem now that I reseted my PC, and reinstalled the whole system new, this started to happen in Unity, 2019.2.xxx and 2019.3.xxx. At this point, I can only assume that this happens on a fresh system installation, and that could be why there aren’t many answers about this on the net, or even Unity team not finding it out after all this time and fix it.

Cheers!

60 Likes

because the field name too long(if you try to delete the floder)
and 2019.2f18 100% happened

And I very sure the QA 100% already close the bug even they never fixed it

2 Likes

Thanks…

I had Unity 2018.3.14f1 (64-bit) and I was trying to install Unity 2019.2.21f1 (64-bit) … the same issue;
Psyboyo your fix works.

Man this info saved me a lot… thank you :slight_smile:

I have same problem
I uninstall all version of unity in my computer
but I couldn’t fix it

download and install UnitySetup-Android-Support manually isn’t good solution because you can’t use Unity recommended SDK And JDK to export your game

Had this issue while reinstalling Unity 2019.4.8f1 with Android support. @Psyboyo 's fix caused hitting the retry button on that error to work.

If anyone still have that problem, I’ve just deleted the folder AndroidPlayer; Unity\Hub\Editor\2019.4.3f1\Editor\Data\PlaybackEngines\AndroidPlayer
and hit retry button

5 Likes

Just delete the folder and click retry.

2 Likes

thanks i had same problem after downloading module on unity hub, after deleting androidplayer folder, i just click retry and its work

1 Like

COULD UNITY GIVE MORE CONTROL OVER THE UNITY HUB SHITY INSTALL PROCESS UNITY IS A GREAT SOFTWARE HANDS DOWN BUT UNITYHUB BIG TIME SHIT ERRO INSTALL CLOTTERING HDD WITH TEMP INSTALL ERROR DUE TO PERMISSION / IMPERSONATING ADMIN RIGHT TO MANAGE FOLDER’S PERMISSION NEED TO USE ADMIN RIGHT TO EVEN START HUB MEMORY CONSUMING EVEN LOWERED ON THE TASKBAR JUST TO GET ACCESS TO PROJECT LIST AND TUTORIALS PLEASE I’D BE APPY WITH JUST A LINK TO TUTORIALS AND SMOOTH INSTALL PROCESS. DOWNLOADING GIGS OF DATA TO FAIL INSTALL AND REDO PROCESS AGAIN NO RESUME FROM SCRATCH AGAIN LOL.

1 Like

Oh boy, this is pretty ridiculous. I tried installing 2019.3.12 via the hub but the “installer cannot remove files”-popup was waiting for me somewhere in the background. And I had wondered “WTF is this taking to long”? So, after seeing that popup, I found this thread that made me realize that Unity doesn’t properly clean up during uninstall (but never warned me about that), which is what is causing the issue when you try to re-install a version you’ve previously had installed. So I manually cleaned up that mess (I had remains of about 5 Unity installations, most of them older ones, like 2019.3 and earlier).

Now, I tried finally doing my 2019.3.12 install again but the links on https://unity3d.com/get-unity/download/archive no longer work for me. They do open Unity Hub - but Unity Hub won’t start the installation. I’ve tried it with different Unity versions / links. This did work before. Now it doesn’t. Tried it with both Firefox and Chrome, both with Unity Hub previous open, and Unity Hub previously closed. It opens (or is moved to the foreground if it already was open), but the installation doesn’t start. Very useful.

So now I’m going for a manual install. This is on Unity Hub 2.4.2.

Now, the manual install is removing my 2019.4.17 installation that I’d actually rather keep … and that uninstall is taking forever, and ironically runs into the same issue again (and funny enough, now that popup was pushed to the foreground while I was typing this, so I accidentally closed it).

And all of this because 2019.4.17 fails building to Android without giving a useful error message and I’m trying to figure out what the problem with this is.

Thank you for wasting my time, Unity.

Ok, so now I have 2019.3.12 finally installed - but it doesn’t properly register with Unity Hub. So it seems I won’t be able to properly uninstall it.

That may or may not be necessary. It wasn’t in my case.
[quote=“Psyboyo, post:3, topic: 743159, username:Psyboyo”]
2. Go to:
*C:\Program Files\Unity\Hub\Editor\2019.2.6f1\Editor\Data\PlaybackEngines*
**[/quote]
**[quote=“Psyboyo, post:3, topic: 743159, username:Psyboyo”]
(this example is for 2019.2.6f1 but you can choose any other)
[/quote]

I think this is important: Go do C:\Program Files\Unity\Hub\Editor and look for editor versions that you actually currently don’t have installed. You can confirm that either by comparing with what’s shown in the Unity Hub (if you have all your installation in Unity Hub), or just looking into the folders and checking whether they have a full Unity installation, or just a few remaining folders. In my case, I’ve had a few that didn’t have “AndroidPlayer” but other folders that would cause the same issues had I tried to install that specific version again before removing stuff manually.

It also happens with older installations - but it only happens when you try to install a version that you had previously installed and then uninstalled. And it probably only happens with either certain Unity versions, or certain versions of the Unity Hub.

this issue soo annoying…using 2020.2.1.f1… it messed up my app cause I tought firebase admob and other plugins stuff is messing during building… hope can fix this

@Psyboyo
Amazing thanks!
Just got that issue for the very first time on windows machine > 2021.1.6f1 O_o.

Just had this error while installing 2020.3.14 on Unity Hub 3.0.0-beta.2.

In case it can help someone: I fixed it by installing the Editor with only Android Build Support first, leaving the SDK/OpenJDK unmarked, and then I added these modules separately afterwards.

When adding the modules, I did receive an error saying “Verification failed” in Android Build Support, but everything seems to run fine now.

3 Likes

Can confirm the 3.0 beta fucked med up as well. Downgraded back to old hub and reinstalled the editor. Got the error once again, but clicked retry, and now everything worked as expected.

Yes, For me too. “Downgrading” to Hub version 2 and reinstalling the Editor fixed it for me as well.

2 Likes

Downgrading from Unity Hub beta worked for me