Android SDK is installed, but adb.exe is missing

After my Visual Studio Installation suddenly lost the ability to deploy my Xamarin application for the Android emulator , I decided to uninstall EVERYTHING (Visual Studio, Xamarin, Android SDK) and start over.

Everything was reinstalled, but the Android SDK does not contain the adb.exe file. The place where I expect to find it is here:

C: \ Users \ costcopc \ AppData \ Local \ Android \ Android-SDK \ platform tools \ adb.exe

Something went wrong? How can i fix this?

I opened the cmd.exe prompt and searched the entire drive (C:>) to find the file - it does not exist.

Track my steps again

In case this helps, I will return to my steps ...

Delete

I did not install Xamarin first, as instructed . I need a clean slate, so in accordance with these instructions I also deleted:

  • Android SDK Tools
  • GTK #

I did not remove the Java SDK because, as my first link explained, I already used the system restore point to restore the stable version of the Java SDK.

Next up was Visual Studio. I used its installer to remove it, and then I post-uninstalled the “Additional installer” instructions that it gave.

Reinstall

First, I installed VS 2015 again, then I ran the Xamarin Studio installer, which in turn installed the Android SDK for me:

enter image description here

When everything seemed to be installed successfully, I started Visual Studio and tried to open the Android SDK Manager using the tools → Android → Android SDK Manager.

This worked, but I noticed that the cmd.exe window opened and remained open, it contained some strange error messages.

enter image description here

Here it is: "The process cannot access the file because it is being used by another process."

Despite the anomalies, I used the SDK manager to install 4 more packages.

However, I felt awkward in the error messages, so I decided it was time for a reboot. After the reboot, the situation worsened. Previously, Visual Studio, at least, could run the Android SDK manager. Now he could not start it at all:

enter image description here

This odd SDK path has disappeared!

Xamarin Studio also failed to start the SDK manager:

enter image description here

Now I decided to do a “repair” of Xamarin Studio. Xamarin acted like the Android SDK was installed, and so he did nothing to fix it.

Again, what can I do to fix this?

+6
source share
3 answers

I solved this problem by selecting Tools / Xamarin Account in VS 2017RC.

Then the browser will open, go to your account and download and install Xamarin here.

+1
source

I would recommend you install the community community VS 2015 community: https://go.microsoft.com/fwlink/?LinkId=615448&clcid=0x409

after installation, open VS> tools> options> Xamarin and make sure your SDK is detected successfully:

If something is not found, then run the Android SDK Manager as an administrator, then make sure the SDKs are installed / updated correctly.

0
source

Just run the visual studio as an administrator and it will be solved (directory directory to the destination folder where the real tool is located)

0
source

All Articles