Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

While launching AVD in emulator showing this "Unable to locate adb"

error

It was working before but after 4.0 update it's not working.

Errors are

08:55 AM Emulator: C:\Users\Asus\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: error while loading state for instance 0x0 of device 'goldfish_pipe' 08:55 AM Emulator: deleteSnapshot: for default_boot

and yes I don't have antivirus.

like image 685
Lalit Avatar asked Jun 04 '20 03:06

Lalit


People also ask

Why does it say unable to locate adb?

As it turns out, if you are missing the relevant Android version SDK on your system, that will also cause the error message to arise. If this case is applicable, you can easily resolve the error message by installing the respective Android SDK from the SDK Manager found in the Android Studio.

How do I fix Android SDK file not found adb?

How do I fix Android SDK file not found adb? To solve this Error: Make sure you have installed "Android SDK Platform-Tools". When you install "Android SDK Platform-Tools", it will fix Android SDK file not found: adb error.


1 Answers

Reinstalling Android SDK after deleting the platform-tools dir doesn't work for everyone follow these steps, they may help you:

  1. In Android Studio go to File>Project Structure (Ctrl + Alt + Shift + S in windows);

  2. The Project Settings>Project>Project SDK must have a valid Android SDK selected;

  3. Start the adb-server daemon with adb.exe start-server (this is to avoid the: adb wasn't listening on port XXXX error message);

  4. Emulate a new device (if you've added %ANDROID_HOME%\emulator to your path run emulator.exe -list-avds select one of the virtual devices from the list and run emulator.exe -avd , if not find out your Android SDK path and change the previous commands accordingly);

  5. check if the adb daemon is running and recognizes the emulated device: open cmd prompt, run %ANDROID_HOME%\platform-tools\adb.exe devices and it should list the device you have on at the moment.

like image 65
asaio Avatar answered Oct 17 '22 15:10

asaio