Android Studio 3.1.2 Run button enabled. But when click on run button no action happened.
I restarted android studio and my windows 10 also. But still Run button click not showing anything.
Android Studio 3.1.2 Run button enabled. But when click on run button no action happened.
I restarted android studio and my windows 10 also. But still Run button click not showing anything.
Follow the following steps:
There's a Run option on the menu, locate it and click on it.
Click on Edit Configurations
Click on Android Application on the left side and then click the + button.
Choose Android Application from the pop-up menu. Then pick the module (app). Then click apply and then Ok.
If this doesn't work, try re-importing the project into Android Studio, that should fix the problem.
I hope this helps.. Merry coding!
I guess you already solved it, but I got the same issue and found a solution. For me the problem was that adb wasn't found. After reinstalling platform-tools it got solved.
So try opening SDK Manager from Tools -> SDK Manager, go to SDK Tools tab and uncheck Android SDK Platform-Tools. After applying changes install it again.
I uninstalled android studio. Make sure that you delete every possible file, I manually deleted a few files after uninstalling android studio (yes not all files get deleted when you uninstall and specifically user settings). Then download again the .exe from their official website, it will ask you whether to import settings from the previous version, select no. And download all dependencies (make sure you have a good access to internet) and there you go!
I found the error. adb.exe
was deleted from platform-tools
folder and error was
"Unable to locate adb java.lang.IllegalArgumentException: Unable to locate adb" .
Just copy paste adb.exe
into platform-tools
folder and run again it works perfectly..
Thanks.
if you have anti-virus try to disable it and check if adb-file.exe
is deleted or quarantined by it.
in my case Avast
was stopping the android studio from running