Intellij “Run as Android application” missing

感情迁移 提交于 2019-12-12 18:23:58

问题


The emulator android is really running slowy, and I found Genymotion and runs really fast! And when I tried to use with Intellij, after I followed every step from this doc https://cloud.genymotion.com/page/doc/, I got stuck in this item:

In your application project, right click and chose "Run as Android application" The "Android Devices Chooser" opens Click on the Genymotion virtual device you started/created

I really can't find "Run as Android application" whenever I click on my folder project, where I'm missing?

Look at this image, I really don't know why. http://i42.tinypic.com/2ia76rl.png


回答1:


Check the toolbar of Intellij. There is a drop down menu (next to it are the "play" button and the "bug" button to start the debugger). You need to setup an Android configuration for your project first. Check this site http://www.jetbrains.com/idea/webhelp/creating-and-editing-run-debug-configurations.html.

Although I have a configuration for my project, like you I can't see it in the menu your screenshot is showing. But I can use the mentioned run button to run my project without any problem.

Good luck.




回答2:


In IntelliJ inside the Run/Debug Configuration dialog (available under Edit configurations...) you have to select radiobutton "Show chooser dialog" instead of Emulator.

Then you just press Run and you get the list of running devices.

If you select "Use same device for future launches" in the configuration dialog, you won't have to select the device again next time.




回答3:


On your screenshot you have a "Run" item on the options. Look at what appears when you let your mouse over it ;-)



来源:https://stackoverflow.com/questions/19983157/intellij-run-as-android-application-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!