Android Studio Emulator Crashes Mac

In addition to this restriction, keep in mind that you must have Microsoft Visual Studio 2015 and Python 2.7 installed for the emulator to work. So that we're all on the same page, Xenia is an emulator that's constantly being developed. A PSP emulator for Android, Windows, Mac and Linux, written in C. Want to contribute? Join us on Discord at or just send pull requests / issues. Checking for adequate disk space. To avoid crashes and hangs caused by not having. Download Android SDK - The Android SDK provides all the necessary developer tools to build, test, and debug apps for Android in Windows, Mac or Linux. Android Emulator is included with Android Studio. Versions of the emulator prior to 25.3.0 were distributed as part of the Android SDK Tools. To ensure you have the latest version, check the SDK Manager for updates. For Android Emulator versions prior to 25.3.0, see the Android SDK Tools release notes.

after i changed the theme to:

<style name='AppTheme' parent='android:Theme.Holo.Light.NoActionBar'>

and running it on the emulator i kept getting this runtime error:

You need to use a Theme.AppCompat theme (or descendant) with this activity.

Android Studio Emulator Crashes Mac

after looking around i found this on stack overflow:

so i changed the the Java file to extends the Activity class instead of the ActionBarActivity class and all went well.

i don't know if what i did was correct.

I'm using Android Studio 1.0.2 on a Mac

Easy fix, I ran into the same problem just now and decided I better share the solution. ^_^

Inside AndroidManifest.xml there is a line that says android:theme this is just calling a style from your styles.xml.So if we open up this file and change the theme to look like the following everything should work splendidly.

I tried this as well as all the suggested tips in the forum but it still doesn't work. It 'runs' without errors but when it shows up on the emulator or my phone it immediately crashes

I had the same issue

I had to change the java to public class FunFactsActivity extends android.app.Activity

It would be nice to get someone from Treehouse to address what is going on here

I changed mine to AppCompatActivity as recommended by this S.O. post

<style name='AppTheme' parent='Theme.AppCompat.Light.NoActionBar'> -- this worked for me :)

Android Studio Emulator Crashes Mac Os

thank you

Posting to the forum is only allowed for members with active accounts.
Please sign in or sign up to post.

This page is deprecated. Redirecting to https://developer.android.com/studio/run/emulator.html









The Android Studio 2.0 (or higher) preview includes the new Android Emulator 2.0 with improved performance and a new user interface to control device features. This page describes some of the changes compared to the emulator available with the stable version of Android Studio 1.5 and how to setup your development environment to use the Android Emulator.


For best performance with Android Emulator 2.0, your system should meet the following specifications:

  • Windows: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality. AMD and Intel Atom processors do not support VT-x virtual machine acceleration.

  • Linux: Intel® processor with support for Intel® VT-x, Intel® EM64T (Intel® 64), and Execute Disable (XD) Bit functionality or AMD processors with support for AMD Virtualization™ (AMD-V™)

  • 64-bit Operating Systems.


New Features

The most valuable updates to the Android Emulator are the speed improvements. When running with Android Studio 2.0 or higher on an x86 machine, response time is faster than the previous Android Emulator and you can transfer files from your machine faster than a physical Android device.


Android Studio Emulator Crashes Mac Pro

The latest Android Emulator supports new multi-finger touch inputs, including pinch zoom and two finger rotate gestures. Holding down Alt or Option reveals two finger points. Moving the mouse moves one finger and the second finger is mirrored across an anchor point. Clicking the left mouse button enables pinch-zoom gestures and clicking the right mouse button enables two-finger rotate gestures (such as to tilt the perspective when viewing a map).


The panel on the right side of the emulator lets you perform common tasks, such as rotate the screen, capture screenshots, and zoom in on the display.


To install apps, you can drag and drop an APK right on the emulator. You can also drag and drop other file types and they'll be saved to the /sdcard/Download/ directory.


At the bottom of the toolbar on the right is an ellipsis button that opens the Extended Controls window. In here you'll find various controls that invoke device events and mock device sensors.

Keyboard shortcuts are available for most actions and are listed in the Help panel, listed on the left.


Get Android Emulator 2.0

The new Android Emulator is available with Android Studio 2.0 or higher, which is available in both the Stable, Beta and Canary channels.


Once you make sure you have the appropriate emulator system image and other tools:

  1. Open the SDK Manager from Android Studio.

  2. Click the SDK Platforms tab, and select the check box for a recent version such as the Android 6.0 (Marshmallow). By default, this includes the x86 system image that you need for the emulator. You can see and modify the files to download by clicking Show Package Details at the bottom-right.

  3. Click the SDK Tools tab, then select the check boxes for the following:

    1. Android SDK Tools (25.0.0 or higher to get the new emulator)

    2. Android SDK Platform-Tools (23.1.0 or higher to get the fast ADB)

    3. Intel x86 Emulator Accelerator (HAXM installer) (rev 6.0.1 or higher to get CPU acceleration)

  4. Click OK to check for updates.

Android studio emulator crashes mac pro


Create new Android Virtual Device (AVD)

To take advantage of the new Android Emulator and adb speeds, you need to create new AVDs. In this example below, we are creating a Nexus 5x AVD.


  1. Open the AVD Manager from Android Studio.

  2. Click Create Virtual Device.

  3. Select the defaults for Nexus 5x.

  4. Select a system image, such as Marshmallow - API 23 - x86.

  5. Select Show Advanced Settings.

  6. Select the Multi-Core CPU check box. The number of cores available depends on the number of cores available on your development machine.

  7. Run your new Android Virtual Device by click on the green Play button.

You should see the Android Emulator now start up.


Troubleshooting


Check Intel x86 Emulator Accelerator Installation

If you selected the defaults during the Android Studio installation you should be ready to go. If you created a custom Android Studio installation or run into issues, read the troubleshooting guide below. If your Intel x86 Emulator Accelerator is out of date, Android Studio will automatically inform you and suggest a quick fix to update, as shown in the following screenshot in the AVD Manager.

Installing CPU Accelerator (HAXM)

If you skipped the initial setup of Android Studio, you should make sure the CPU acceleration is installed.


You can manually install Intel x86 Emulator Accelerator by opening intelhaxm-android.exe (on Windows) or intelHAXM_6.0.1.dmg (on Mac) from /sdk/extras/intel/Hardware_Accelerated_Execution_Mangager, as shown below:



Installing HAXM in Windows

Installing HAXM in OS X


For Linux, the Android emulator usesKernel-based Virtual Machine (KVM). If you are using Ubuntu, you can run check your KVM system compatibility by running the following on the command line:

$egrep –c '(vmx|svm)' /proc/cpuinfo

on the command line to check for for a return value of greater than 1


To check if you have KVM installed by running the following on the command line:

$kvm-ok

Android Studio Emulator Crashes Machinery


If KVM is missing or to ensure you have the latest KVM installed, run the following on the command line:

$sudo apt-get install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils ia32-libs-multiarch

Android Studio Emulator Crashes Machine


The linux commands look like the following on Ubuntu:


Android Studio Emulator Crashes Mac

Known Issues

  • Emulating inbound phone call freezes emulator.

  • Screenshot feature crashes emulator in certain conditions.

  • If an AVD has been opened in a previous version of the emulator, it may not boot in the new emulator, therefore create a new AVD.

  • OSX - screen doesn't go black when you sleep the device.

  • Linux - segfault on exit in some conditions.

  • '-gpu mesa' option not supported.

  • '-net*' option not supported.

  • '-no-window' option not supported.

  • Remote desktop not supported.

  • Emulated hardware 'recents' key doesn't work in older system images.

  • Multiple DNS servers not supported.

Android Studio Emulator Crashes Macro


If you find other issues in the Android Emulator, pleasefile a bug report.

Android Studio Emulator Crashes Mac Computer

We have more features in the pipeline, but if you may also submit feature requests.