android studio error Unable to locate adb

2

I am starting the development of app with android studio with jre and jvm that I copy below.

Android Studio 3.2.1
Build #AI-181.5540.7.32.5056338, built on October 8, 2018
JRE: 1.8.0_152-release-1136-b06 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

When executing a project, I get the following error

Unable to locate adb

I reported it to google and I looked in other forums where they claim that the avast (in my case) would have deleted the file adb.exe, look in the trunk of the virus and I do not see it. Disable the antivirus, uninstall and install the android studio and I still have the same problem.

Also, execute rebulding and clear project, obtaining the same error. If someone could solve it or can guide me or pass me a forum in which this resolved, I would be very grateful. Thanks

    
asked by Cristian Budzicz 19.10.2018 в 21:36
source

2 answers

2

The problem you are presenting does not merit a report to Google, but in fact if the file adb.exe does not exist, it is not possible for you to see your project working, even to upload the .apk to your emulator or physical device is necessary the ADB .

The path where adb.exe is located is:

C:\Users\<usuario>\AppData\Local\Android\sdk\platform-tools

Because of the message you are commenting, apparently it does not exist!

If this file was deleted, it could have been removed by mistake or as mentioned by some policy of your antivirus, it is important to check if your antivirus is doing this action and include an exception to exclude this file.

If it was only removed by mistake, you must install SDK Platform Tools .

Go to File > Settings :

    
answered by 19.10.2018 / 23:18
source
1

You may have to reinstall the ADB Tools.

Android Studio - > File - > Settings - > Searching for Android SDK - > Select the SDK Tools tab and then Android SDK platform tool and Android SDK Tools ...

    
answered by 19.10.2018 в 23:25