I am starting to develop an 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, it gives me the following error
Unable to locate adb
I reported it to google and I have searched in other forums where they affirm that avast (in my case) would have eliminated the adb.exe file, I looked in the virus chest and I did not see it. Deactivate the antivirus, uninstall and install the android studio and I still have the same problem.
Also, run rebolding and clear project, getting the same error. If someone could solve it or can guide me or pass me a forum in which it is solved, I would be very grateful. Thank you
You may not have the android SDK configured for your project.
To configure it go to
File
>Project Structure
and within the project settings, in the sectionProject SDK
configure the Android version you needThe problem you present does not merit a report to Google, but in fact if the file does not exist
adb.exe
, it is not possible that you can see your project working, even to upload the .apk to your emulator or physical device, ADB is necessary .The path where adb.exe is located is inside the sdk directory at
platform-tools/
:From the message you mention, apparently it doesn't exist!
If this file was deleted, it could have been deleted by mistake or as mentioned by some policy of your antivirus, it is important to check if your antivirus is performing this action and include an exception to exclude this file.
If it was just removed by mistake, you need to install the SDK Platform Tools again .
Go to
File
>Settings
, insideSystem Settings
>Android SDK
go to the "SDK Tooks" tab:You may have to reinstall the ADB Tools.
Android Studio -> File -> Settings -> Search for Android SDK -> Select the SDK Tools tab and then mark Android SDK platform tool and Android SDK Tools ...
In my case I needed to add to the windows
C:\Users\<Usuario>\AppData\Local\Android\Sdk
environment variables