0

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.

enter image description here

Ahamadullah Saikat
  • 4,437
  • 42
  • 39

5 Answers5

0

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!

Taslim Oseni
  • 6,086
  • 10
  • 44
  • 69
0

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.

Rubén Viguera
  • 3,277
  • 1
  • 17
  • 31
  • 1
    Hi @Shadow. It is explained avobe just from Android Studio go to Tools -> SDK Manager, then uninstall Android SDK Platform-Tools and after that install it again. That's it. The point is that this might happen for multiple reasons, for example you can also have Android Support plugin disabled. Nevertheless Android Studio will warn you about it. This was what happened to me particularly – Rubén Viguera Jan 15 '19 at 09:36
0

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!

Stephen Rauch
  • 47,830
  • 31
  • 106
  • 135
Chaitali
  • 1
  • 1
0

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.

Android
  • 1,420
  • 4
  • 13
  • 23
nithin joseph
  • 461
  • 3
  • 7
0

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

Mohammad Rbabah
  • 456
  • 2
  • 10