的IntelliJ Android项目设置 - 运行按钮将被禁用 [英] Intellij android project setup - run button is disabled
问题描述
我对动作条福尔摩斯依赖的Android项目。它编译没有错误,但运行按钮被禁用。我有工作正常,运行我的设备上的另一个机器人项目,但我看不到这些项目之间的区别 - 除了我能够运行一个项目,我不能够运行其他
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.
你知道吗?
推荐答案
你设置了运行/调试配置?
Did you set up a Run/Debug Configuration?
您应该看到一个下拉的运行按钮的左侧;单击它,然后单击编辑配置。在左上角,点击+添加新的配置,并选择Android应用程序。选择模块(通常这只是你的主要项目)合作推出,选择目标设备(硬件或模拟器),给它一个名称,然后单击确定。
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.
这篇关于的IntelliJ Android项目设置 - 运行按钮将被禁用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!