There are a couple of solutions depending on what exactly is causing the problem.
So, just follow the following steps.
Step 1:- Close Android-Studio.
Step 2:- Open Command prompt or win + r, type cmd
and press Enter.
Step 3:- Navigate to your platform-tools
, in most of the cases the location is:
C:\Users\[user]\AppData\Local\Android\android-sdk\platform-tools
but in your case, the location is:
C:\Android\Sdk\
For Mac users the path is
/Users/[user]/Library/Android/sdk/platform-tools
Step 4:- Type adb.exe start-server
, Press Enter
Step 5:- Open Android Studio again.
For Mac the command is just adb start-server
The problem should be solved!
If the problem persists, then follow these steps-
Step 1:- Close Android Studio.
Step 2:- Press Alt + Ctrl + Del, then choose Start Task Manager
.
Windows Task Manager opens.
Step 3:- Go to the processes
tab.
Step 4:- Look for adb.exe
and select that.
Step 5:- Press End Process
.
Step 6:- Open Android Studio again.
That's it. Now your problem must be solved!
But if the problem is still there (which I don't think will happen), then there is something wrong (or might be missing) in your platform-tools
.
To fix that, delete platform-tools
from your computer, then download them again from Official Android Developer website.
Extract the downloaded file.
Now place the extracted file, where platform-tools
were located before deleting.
Default Location of platform-tools
is
C:\Users\[user]\AppData\Local\Android\android-sdk\
But in your case, the location is
C:\Android\Sdk\
cmd + ;
and I was met with a screen with a red "no sdk" dropdown. Filling that in with the existing Android API made it all work. – Duncan