的IntelliJ Android项目设置 - 运行按钮将被禁用将被、按钮、项目、IntelliJ

由网友(莪想关心又怕多余)分享简介:我对动作条福尔摩斯依赖的Andr​​oid项目。它编译没有错误,但运行按钮被禁用。我有工作正常,运行我的设备上的另一个机器人项目,但我看不到这些项目之间的区别 - 除了我能够运行一个项目,我不能够运行其他I have an android project with dependencies on actionbar...

我对动作条福尔摩斯依赖的Andr​​oid项目。它编译没有错误,但运行按钮被禁用。我有工作正常,运行我的设备上的另一个机器人项目,但我看不到这些项目之间的区别 - 除了我能够运行一个项目,我不能够运行其他

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.

阅读全文

相关推荐

最新文章