Android Studio Emulator Crashes Mac

Android Studio is the official integrated development environment (IDE) for Google’s Android operating system, built on JetBrains IntelliJ IDEA software and designed specifically for Android development. It is available for download on Windows, macOS and Linux based operating systems. It is a replacement for the Eclipse Android Development Tools (ADT) as primary IDE for native Android application development.

Android Studio was announced on May 16, 2013, at the Google I/O conference.

Launch the Android Emulator without first running an app. To start the emulator: Open the AVD Manager. Double-click an AVD, or click Run. The Android Emulator loads. While the emulator is running, you can run Android Studio projects and choose the emulator as the target device. Android Emulator., thus it will work on Mac too! So these were the Best 5 Android Emulators for Mac OS, besides these there are other options available too such as the Android SDK (Official) Emulator,AndroVM, AndroLite but configuring official Android SDK is a tedious task and other two didn’t interest me much, you can check them out too.

Features

The following features are provided in the current stable version:

  • Gradle-based build support.
  • Android-specific refactoring and quick fixes.
  • Lint tools to catch performance, usability, version compatibility and other problems.
  • ProGuard integration and app-signing capabilities.
  • Template-based wizards to create common Android designs and components.
  • A rich layout editor that allows users to drag-and-drop UI components, option to preview layouts on multiple screen configurations.
  • Support for building Android Wear apps.
  • Built-in support for Google Cloud Platform, enabling integration with Firebase Cloud Messaging (Earlier ‘Google Cloud Messaging’) and Google App Engine.
  • Android Virtual Device (Emulator) to run and debug apps in the Android studio.

Android Studio supports a number of programming languages, e.g. Kotlin; and Android Studio 3.0 supports “Java 7 language features and a subset of Java 8 language features that vary by platform version. External projects backport some Java 9 features.

Download Android Studio

Guides and Tutorials

How to Install Android Studio

-->

To connect to the Android Emulator running on a Mac from a Windowsvirtual machine, use the following steps:

  1. Start the emulator on the Mac.

  2. Kill the adb server on the Mac:

  3. Note that the emulator is listening on 2 TCP ports on the loopbacknetwork interface:

    The odd-numbered port is the one used to connect to adb. See alsohttps://developer.android.com/tools/devices/emulator.html#emulatornetworking.

  4. Option 1: Use ncto forward inbound TCP packets received externally on port 5555 (orany other port you like) to the odd-numbered port on the loopbackinterface (127.0.0.1 5555 in this example), and to forward theoutbound packets back the other way:

    As long as the nc commands stay running in a Terminal window, thepackets will be forwarded as expected. You can type Control-C inthe Terminal window to quit the nc commands once you're doneusing the emulator.

    DAEMON Tools Lite for Mac allows you to mount all known types of disc image files and emulates up to 4 DT + SCSI + HDD devices. It enables you to create images of your optical discs and access them via well-organized catalog. The DAEMON Tools is a professional environment to copy, CDs, DVDs, and Blu-Ray discs as well as manage image files. DAEMON Tools 6.3 for Mac Review. A powerful application to work with the disc images along with support for copying content from CDs, DVDs and Blu-Ray discs. DAEMON Tools 6.3 comes up with a variety of powerful tools to easily manage discs and disc images. MacOS Apps » DAEMON Tools for Mac 6.3.419. DAEMON Tools for Mac 6.3.419. DAEMON Tools is a solution for mounting and creating CD/DVD/HDD disc images. Access Options. DAEMON Tools for Mac enables you to use virtual discs to back up, compress and protect your data. Select a folder from Finder to create an image or launch an app to grab the physical optical disc. Tools DAEMON Tools is a solution for mounting and creating CD/DVD/HDD disc images. With the program, the system recognizes the virtual images and allows you to work with them like with ordinary discs. DAEMON Tools is a compact and smart solution for mounting different types of virtual discs on Mac which lets you create ISO, MDX and MDS/MDF images.

    (Option 1 is usually easier than Option 2, especially if System Preferences > Security & Privacy > Firewall is switched on.)

    Option 2: Use pfctlto redirect TCP packets from port 5555 (or any other port youlike) on theShared Networking interface tothe odd-numbered port on the loopback interface (127.0.0.1:5555in this example):

    This command sets up port forwarding using the pf packet filtersystem service. The line breaks are important. Be sure to keep themintact when copy-pasting. You will also need to adjust theinterface name from vmnet8 if you're using Parallels. vmnet8 isthe name of the special NAT device for the Shared Networkingmode in VMWare Fusion. The appropriate network interface inParallels is likelyvnic0.

  5. Connect to the emulator from the Windows machine:

    Replace 'ip-address-of-the-mac' with the IP address of the Mac, for example as listed by ifconfig vmnet8 grep 'inet '. If needed, replace 5555 with the other port you like from step 4. (Note: one way to get command-line access to adb is via Tools > Android > Android Adb Command Prompt in Visual Studio.)

Alternate technique using ssh

If you have enabled Remote Login on the Mac, then you can use ssh port forwarding to connect to the emulator.

  1. Install an SSH client on Windows. One option is to installGit for Windows. The sshcommand will then be available in the Git Bash command prompt.

  2. Follow steps 1-3 from above to start the emulator, kill theadb server on the Mac, and identify the emulator ports.

  3. Run ssh on Windows to set up two-way port forwarding between alocal port on Windows (localhost:15555 in this example) and theodd-numbered emulator port on the Mac's loopback interface(127.0.0.1:5555 in this example):

    Replace mac-username with your Mac username as listed bywhoami. Replace ip-address-of-the-mac with the IP address ofthe Mac.

  4. Connect to the emulator using the local port on Windows:

    (Note: one easy way to get command-line access to adb is viaTools > Android > Android Adb Command Prompt in Visual Studio.)

A small caution: if you use port 5555 for the local port, adb willthink that the emulator is running locally on Windows. This doesn'tcause any trouble in Visual Studio, but in Visual Studio for Mac itcauses the app to exit immediately after launch.

Alternate technique using adb -H is not yet supported

In theory, another approach would be to use adb's built-in capabilityto connect to an adb server running on a remote machine (see forexample https://stackoverflow.com/a/18551325).But the Xamarin.Android IDE extensions do not currently provide a wayto configure that option.

Contact information

This document discusses the current behavior as of March, 2016. Thetechnique described in this document is not part of the stable testingsuite for Xamarin, so it could break in the future.

If you notice that the technique no longer works, or if you notice anyother mistakes in the document, feel free to add to the discussion onthe following forum thread:http://forums.xamarin.com/discussion/33702/android-emulator-from-host-device-inside-windows-vm.Thanks!