Android Studio Launch Emulator Mac

Posted on

I have been working on an android project, I am using android studio on my iMAC[Software OS X 10.9.5, Graphics Intel HD Graphics 5000 1024 MB, Processor 1.4 GHz Intel Core i5]. When i try to open my application on an android emulator it get this error.

Lightbulb_outline How are you making your apps smart? • Meet Android Studio • • • • • • • • • Manage your project • • • • • Add C and C++ code • • • • • • Write your app • • • • • • • • • • • • • • • • • • • • Build and run your app • • Run apps on the emulator • • • • • • • • • Run apps on a hardware device • • • • • • Configure your build • • • • • • • • • • • • • • Debug your app • • • • • • • • • • • Test your app • • • • • monkeyrunner reference • • • • • Profile your app • • • • Inspect CPU activity • • • • • • • • • Publish your app • • • • • • Command line tools • • • • • • • • • • • • • • • • • • • • • • •.

I use the iOS Simulator and AVDs (Android Virtual Devices) heavily, and was getting frustrated with the need to manually launch the two from Xcode and Android Studio, respectively. So I spent a little time setting up commands that let me launch these tools from my terminal. I named them ios-simulator and android-emulator, and here’s what they look like in action.

Android studio launch new activity

In this article I’ll walk through how you can set up these commands on your own machine. Launching Android AVDs As part of the you get a command-line tool called emulator, which is the Google-blessed way to work with AVDs from the command line, and which has that let you do a wide range of things.

The first option you’ll want to know is -list-avds, as it lists all AVDs you currently have configured. For example, here’s what that command looks like when I run it on my Mac. Once you have an AVD’s name, you can start up that AVD with the emulator command’s -avd option. For example here’s how I run my Nexus 5X AVD using the emulator command.

One important note: when you run the emulator command with the -avd flag, the process that controls the AVD remains active in your terminal — meaning, you are unable to type subsequent commands without killing the AVD. You could open a new terminal tab or window to avoid this, but you could also try appending a & to the end of the command, which is a.

With the addition of an ampersand, the AVD will run in the background and you’ll regain control of your terminal. NOTE: • The [1] 4168 bit you see above is a process id, which you can safely ignore. If you’re really curious, you can. • Even though the emulator process will now run in the background, the process can still interrupt your terminal to show output from time to time. You can safely use Ctrl+C to regain control without killing the AVD.

So join me in Excel for Mac 2016: Charts and Depth. • Practice while you learn with exercise files. Excel Watch this course anytime, anywhere.