While launching AVD in emulator showing this "Unable to locate adb"
Reinstalling Android SDK after deleting the platform-tools dir doesn't work for everyone follow these steps, they may help you:
In Android Studio go to File>Project Structure (Ctrl + Alt + Shift + S in windows);
The Project Settings>Project>Project SDK must have a valid Android SDK selected;
Start the adb-server daemon with adb.exe start-server (this is to avoid the: adb wasn't listening on port XXXX error message);
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);
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.
Admin
Updated on August 06, 2022Comments
-
Admin over 1 year
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.
-
Admin almost 4 yearsIn "c://Users/johndoe/AppData/local/android". Is don't have that AppData file, now what i do
-
Gurarshdeep Singh almost 4 yearsLocate your SDK in your PC, and follow steps
-
Admin almost 4 yearshay, i'm still geting this error :- {16:22 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' 16:22 Emulator: deleteSnapshot: for default_boot}
-
DrP3pp3r almost 3 yearsFor me under Project Settings>Project>Project SDK was not set.