I have an android project with dependencies on actionbar sherlock. It compiles without error but the run Button is disabled. I have another android project that works fine and runs on my device, but I cannot see the difference between those projects - except I am able to run the one project and I am not able to run the other.
I would provide screenshots, but actually I don't have any idea where this problem is located.
Any idea?
Open the source code, right-click and hit run using the option run "filename. java". IntelliJ will make the configuration for you and then you can click the run button after the configuration is made by the IDE.
From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . on the toolbar or press Alt+Insert . The list shows the run/debug configuration templates.
To run IntelliJ IDEA, find it in the Windows Start menu or use the desktop shortcut. You can also run the launcher batch script or executable in the installation directory under bin. Run the IntelliJ IDEA app from the Applications directory, Launchpad, or Spotlight.
If you're creating a project from existing source: and If the existing source directory contains a lot of data/files: the Run option (and others, assumably) are disabled until PyCharm is finished indexing the contents in the project.
Did you set up a Run/Debug Configuration?
You should see a drop down to the left of the Run button; click it and click "Edit Configurations". In the top-left, click the "+" to add a new configuration, and select "Android Application". Select the Module (usually it's just your main project) to launch, choose the Target Device (hardware or emulator), give it a name, and then click OK.
Now you should be able to run with that configuration.
In 2017, IntelliJ idea wants to index stuff for several minutes before it will enable the Run option.
This appears to be by design.
Run configuration is created automatically so that you don't have to set it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With