Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Run as" android application is missing

SDK and ADT are installed and working, but when I run some android code, the "Run As" panel is empty. I need to go to Run configuration, click on Android application, make a copy, put the name of my project on the copy and the run it. Then it run properly on the emulator. How can I add the "android application" item menu inside the run as menu?

like image 528
Terix Avatar asked Oct 10 '11 13:10

Terix


People also ask

Why is Android emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Why any emulator is not working?

If the emulator fails to launch due to the error vulkan-1. dll cannot be found , you probably need to update the emulator. To update the emulator in Android Studio, go to Tools > SDK Manager and install the latest stable version of Android platform.

How do I run an existing app in Android Studio?

If you are already using Gradle with your IntelliJ project, you can open it in Android Studio using the following steps: Click File > New > Import Project. Select your IntelliJ project directory, and click OK. Your project will open in Android Studio.

What is Rclass?

R. class holds reference for all your android resources.. without which you cannot access any resources (drawable, layout, xmls etc) And R. class is Autogenerated. Follow this answer to receive notifications.


1 Answers

You could Right Mouse Button Click(on activity class) > Run As > Run Configurations. Next is Right Mouse Button Click on Android Application > New. Now you should add your virtual emulator in Target. It works in my version of IDE.

Now you can use this run configurations with your own settings.

like image 165
Pavel Avatar answered Sep 28 '22 07:09

Pavel