'Android sdkmanadger.bat file being deleted (Which Unity relies on)

I am building a project using Android SDK.

In Unity Edit > Preferences > External Tools I am pointing the Android SDK Tools to the correct location. Unity relies on a batch file called sdkmanager

I think mine is being deleted, probably by a Window's 10 update as I have visibly watched it disappear. Is anybody else experiencing this issue? It causes the build to fail. Is there anything I can do to stop this from happening?



Solution 1:[1]

You can reinstall the Android module for your Unity version in Unity Hub under

Installs -> Add Module -> Unity Version -> Android Module with tools

This will solve any dependency and configuration issues. Uninstall Android Studio prior if it doesn't give you the option to install the module for your Unity version.

Solution 2:[2]

If files are disappearing, it's most likely an application removing this file. As written in a comment here, so also in my case, it was an Antivirus software.

Ours was so hidden, it didn't even leave an icon in the icon-tray ... but eventually we found it. Since it was quite an unknown software, we replaced it by a better known brand.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 vasmos
Solution 2 SimonSimCity