Run Button Grayed out: Android Studio

Why is the run button always grayed out in android studio after I had some errors.
I need to reboot my android studio every time to run it again. I am sure that I am missing something 😛

Run Bar

  • Is there a way to have an Android process produce a heap dump on an OutOfMemoryError?
  • Where to report device-specific bugs to Samsung?
  • Send Email Intent
  • How to add an item to a menu group in NavigationView
  • How to get Next button on android softkeyboard in place of Go Button in phonegap
  • Android List with section headers
  • Run Button

    I also get an error right now 🙂

    Already disposed: Project (Disposed): Already disposed: Project (Disposed)
    java.lang.AssertionError: Already disposed: Project (Disposed)
        at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(
        at com.intellij.psi.PsiDocumentManager.getInstance(
        at com.intellij.psi.SingleRootFileViewProvider.getLastCommittedText(
        at com.intellij.psi.SingleRootFileViewProvider.access$400(
        at com.intellij.psi.SingleRootFileViewProvider$DocumentContent.getText(
        at com.intellij.psi.SingleRootFileViewProvider.getContents(
        at com.intellij.psi.impl.source.PsiFileImpl.loadTreeElement(
        at com.intellij.psi.impl.source.PsiFileImpl.calcTreeElement(
        at com.intellij.psi.impl.source.PsiFileImpl.getFirstChild(
        at com.intellij.psi.impl.source.xml.XmlFileImpl.getDocument(
        at com.intellij.psi.impl.source.xml.XmlFileImpl.getRootTag(
        at lombok.ast.MethodInvocation.accept(
        at lombok.ast.Cast.accept(
        at lombok.ast.BinaryExpression.accept(
        at lombok.ast.ExpressionStatement.accept(
        at lombok.ast.Block.accept(
        at lombok.ast.MethodDeclaration.accept(
        at lombok.ast.NormalTypeBody.accept(
        at lombok.ast.ClassDeclaration.accept(
        at lombok.ast.CompilationUnit.accept(
        at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doAnnotate(
        at com.intellij.codeInsight.daemon.impl.ExternalToolPass.access$400(
        at com.intellij.codeInsight.daemon.impl.ExternalToolPass$
        at com.intellij.codeInsight.daemon.impl.ExternalToolPass$
        at com.intellij.util.ui.update.MergingUpdateQueue.execute(
        at com.intellij.util.ui.update.MergingUpdateQueue.execute(
        at com.intellij.util.ui.update.MergingUpdateQueue$
        at com.intellij.util.ui.update.MergingUpdateQueue.flush(
        at com.intellij.util.ui.update.MergingUpdateQueue.flush(
        at com.intellij.util.concurrency.QueueProcessor.runSafely(
        at com.intellij.util.Alarm$Request$
        at java.util.concurrent.Executors$
        at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(
        at com.intellij.util.concurrency.QueueProcessor$RunnableConsumer.consume(
        at com.intellij.util.concurrency.QueueProcessor$2$
        at com.intellij.util.concurrency.QueueProcessor.runSafely(
        at com.intellij.util.concurrency.QueueProcessor$2.consume(
        at com.intellij.util.concurrency.QueueProcessor$2.consume(
        at com.intellij.util.concurrency.QueueProcessor$3$
        at com.intellij.util.concurrency.QueueProcessor.runSafely(
        at com.intellij.util.concurrency.QueueProcessor$
        at com.intellij.openapi.application.impl.ApplicationImpl$
        at java.util.concurrent.Executors$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
        at com.intellij.openapi.application.impl.ApplicationImpl$1$

    Related posts:

    Android Studio build fails with “Task '' not found in root project &...
    RxJava: How to convert List of objects to List of another objects
    VideoView in a live wallpaper?
    Android httpPost with parameters and file
    How can I get a “done” button in softkeyboard?
    import cannot be resolved
  • How to capture the onSwipeDown event on google glass using a native app?
  • Android Emulator doesn't start in MacOS 10.10
  • Does Google Cloud Messaging (GCM) work with Kindle Fire?
  • Android : Call activity of another application
  • Android SQLite database: slow insertion
  • SAX parser vs XMLPull parser
  • 9 Solutions collect form web for “Run Button Grayed out: Android Studio”

    You should initially configure the application.
    Click the edit configuration in the combo box left to run button then:
    enter image description here

    If you’ve made major changes to your project structure, it sometimes takes restarting Android Studio to regain the ability to Run your project. Worked for me.

    After an updated of Android studio this week, it worked 🙂

    Happened to me when my module settings weren’t right. Go to module settings by right clicking the project in the left pane then make sure the target is set to android-23 or whatever version you want

    If you not able to launch android app without activity then perform below mention steps.

    1. Open Edit Configuration.

    2. Select your application and checked do not launch activity.

    After an updated of android studio or major changes to your project structure
    you need to restart android studio and for the first time press run from the dropdown menu

    For me, it was an issue with the app module which was not selected after Android Studio update. Select the app module in the combo box left of the run button.

    There are many solution related to this problem …

    1. Goto setting->plugins->uncheck the red one’s and apply.

      Then again mark them (check them ) and apply .

      Restart your android studio , now you are good to go.


    Sometimes it happens with no reason. If there is definitely no problem with “Run configuration”, restarting Android Studio usually helps.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.