"unable to locate adb" using Android Studio [duplicate]
- on your android studio at the top right corner beside the search icon you can find the SDK Manager.
- view android SDK location (this will show you your sdk path)
- navigate to file explorer on your system, and locate the file path, this should be found something like Windows=> c://Users/johndoe/AppData/local/android (you can now see the sdk.) Mac=>/Users/johndoe/Library/Android/sdk
- check the platform tools folder and see if you would see anything like adb.exe (it should be missing probably because it was corrupted and your antivirus or windows defender has quarantined it)
- close Android Studio, open the Task Manager and finish the ADB.exe process if it's running and then delete the platform tools folder
- go back to android studio and from where you left off navigate to sdk tools (this should be right under android sdk location)
- uncheck android sdk platform-tools and select ok. (this will uninstall the platform tools from your ide) wait till it is done and then your gradle will sync.
- after sync is complete, go back and check the box of android sdk platform-tools (this will install a fresh one with new adb.exe) wait till it is done and sync project and then you are good to go.
If you are still having problems, you may need to set the Project SDK.
I hope this saves someone some hours of pain.
if using avast go for virus chest,will find adb,restore it by clicking right button..thats all,perfectly works