Android Studio Emulator Crashes Mac

Android Studio Emulator Crashes Mac 5,9/10 7016 votes

On Mac OS X v10.10 Yosemite and higher, the Android Emulator uses the built-in Hypervisor.Framework by default, and falls back to using Intel HAXM if Hypervisor.Framework fails to initialize. To use VM acceleration on macOS when the Hypervisor.Framework is not available, you must install the Intel HAXM kernel extension. How to Install iOS Simulator and Android Emulator on Mac for testing and debugging your websites and webapps Introduction. Mobile first! It became true in the end of 2016 when a mobile web-browsing eventually overtook a desktop one.

-->

Important

This article describes functionality and guidance that is in public preview and may be substantially modified before it's generally available. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Use the Android Emulator with a preview Surface Duo image that is integrated into your development environment to test your app without a physical device. The emulator simulates postures, gestures, hinge angle, mimicking the seam between the two screens, and more. We'll continue to add functionality over time.

The preview Surface Duo image requires that the Android Emulator be installed with Android Studio or Visual Studio (Xamarin).

Note

Read the Xamarin Developers section for help setting up the Surface Duo Emulator to work with Visual Studio.

Run the emulator

After completing the SDK Setup, you can launch the Surface Duo Emulator via the start menu link.

If the emulator does not start, you might need to update the pointer to your Android SDK installation.

  • Open the SurfaceDuoEmulator_ version _.dmg file.
  • Copy the .jar file and the contents of the emulator folder to your local hard drive. (The emulator folder name cannot have periods in it.)
  • If you changed the installation location of the Android SDK from the default, update the pointer to your Android SDK installation.
  • In a terminal window, navigate to the folder where you copied the emulator
  • Type ./run.sh to start the emulator.
  • Open the SurfaceDuoEmulator_ version _.deb file.
  • Copy the .jar file and the contents of the emulator folder to your local hard drive. (The emulator folder name cannot have periods in it.)
  • If you changed the installation location of the Android SDK from the default, update the pointer to your Android SDK installation.
  • In a terminal window, navigate to the folder where you copied the emulator
  • Type ./run.sh to start the emulator.

Update the pointer to your Android SDK

If you changed the installation location of the Android SDK from the default, you will need to update the run script to point to the correct installation location. Otherwise, the emulator will not run when you click the shortcut or run the script.

  1. Find the installation location of the Surface Duo Emulator. The default location is %USERPROFILE%SurfaceDuoEmulator.
  2. Open the artifacts folder inside of the installation folder.
  3. Make a backup copy of run.bat - You can copy it to something like run_androidstudio.bat.
  4. Open the file run.bat in a text editor.
  5. Verify the ANDROID_SDK_LOCATION path value near the top of the file is correct.
  1. Find the location you extracted the downloaded Surface Duo Emulator archive to.
  2. Make a backup copy of run.sh - You can copy it to something like run_androidstudio.sh.
  3. Open the file run.sh in a text editor.
  4. Verify the ANDROID_SDK_LOCATION path value near the top of the file is correct.
  1. Find the location you extracted the downloaded Surface Duo Emulator archive to.
  2. Make a backup copy of run.sh - You can copy it to something like run_androidstudio.sh.
  3. Open the file run.sh in a text editor.
  4. Verify the ANDROID_SDK_LOCATION path value near the top of the file is correct.

How to Debug your App on the emulator

Directly in Android Studio

  • Open your project in Android Studio.
  • Build your project: Build > Make Project or Ctrl+F9.
  • Select 'Microsoft SurfaceDuoEmulator API 29' from the list of Running Devices.
  • Run your project to deploy it to the emulator: Run > Run 'project name' or Shift+F10.
  • To stop debugging: Run > Stop 'project name' or Ctrl+F2.

Using ADB commands

Follow these steps to debug using ADB commands.

If you use Apple Remote Desktop to install Office for Mac 2011 on another computer on your network, Dock icons are not installed. Microsoft office 2011 v14.0.0 for mac torrent. Duplicate fonts are moved to the Fonts Disabled (/Library/Fonts Disabled folder or the /Users/ username/Library/Fonts Disabled) folder during installation. For example, click Customize if you don't want to install Office Fonts, Dock Icons, or certain applications such as Microsoft Messenger, Remote Desktop, or Microsoft Document Connection.Notes:.

  1. Find your emulator device ID

    Run C:>adb devices.

  2. Find the package you want to debug.

    Run adb shell pm list packages.

  3. Set the app to debug at startup (note the -w)

    Run adb shell am set-debug-app -w com.microsoft.device.display.samples.masterdetail.

  4. Start the app in the emulator.

    You will get a popup that the app is waiting for a debug to attach. You will need to re-run the set debug each time (or use --persistent option).

  5. Connect Android Studio Debugger

    In Android Studio menu options, select Run->Attach debugger. The emulator and process should be listed.

  6. Point to source code and set breakpoints.

Span your app in the emulator

To span your app in the emulator, drag the app from the white bar at the bottom of the app screen towards the middle of the device. When the background turns white across both screens, release the app.

Use the camera

Use this command to list the webcams available on the machine:

~/Android/Sdk/emulator/emulator -webcam-list

If necessary, change the path to match your local installation.

Copy the camera name you want to use, and open the config.ini file. In there you will see something like this:

For example, you can change the front camera to use the host machine's webcam.

Xamarin Developers

Important

Android Studio Emulator Crashes Mac

The preview release of the Surface Duo Emulator requires changes to allow Xamarin Android and Visual Studio to connect to it for deploying and debugging apps.

  1. Find the installation location of the Surface Duo Emulator. The default location is %USERPROFILE%SurfaceDuoEmulator.
  2. Open the artifacts folder inside of the installation folder.
  3. Make a backup copy of run.bat - You can copy it to something like run_androidstudio.bat.
  4. Open the file run.bat in a text editor.
  5. Replace the entire contents of the file with the snippet for your platform below:
  6. Verify the ANDROID_SDK_LOCATION path value near the top of the file is correct (the default Visual Studio install location is specified).
  1. Find the location you extracted the downloaded Surface Duo Emulator archive to.
  2. Make a backup copy of run.sh - You can copy it to something like run_androidstudio.sh.
  3. Open the file run.sh in a text editor.
  4. Replace the entire contents of the file with the snippet for your platform below:
  5. Verify the ANDROID_SDK_LOCATION path value near the top of the file is correct (the default Visual Studio install location is specified).

This section is not applicable to installing the emulator and SDK on Ubuntu or Debian.

Debugging your Xamarin Android App

Open your Project in Visual Studio, build it, and select <build> (Android 10.0 - API 29) (in the list of Running Devices) and deploy.

The name of the emulator in Visual Studio will be fixed in a future release.

Hello,

2 years ago I made a simple Xamarin forms app.
Recently, I decided to take a new look at this app using visual studio 2017 on MacOs
I had some problems with packages that were out of date, but I managed to update them.
Now I can launch the app on the android emulator but unfortunately, after the app is launched I can use it for maybe 20 seconds and then the emulator crashes and Osx tells me that 'qemu-system-i386' crashed.

Also, maybe it is not related but I have some generation warnings saying that there are conflicts between different version of the same assembly (My visual studio is in french so I hope that it still makes sense)
If I do what visual tells me to do, which is double click and then press 'enter', VS ask to modify some file but then It fails to do so because the file is read only and the permission was denied (No password prompt)

Now of course, I thought that my installation of visual studio or Android studio was incorrect, so I tried to test the sample Xamarin Forms app. The emulator does not appear to crash even after several minutes.

Download Just Cause 4 for Mac OS: Just Cause 4 is a single-player third-person shooter in a huge open world. The game takes place in a fictional South American country called Solis. In this part of Just Cause, Rico Rodriguez will fight the Black Hand, the organization itself is made up of strong and well-armed soldiers, led by this organization. Download now Direct download link (MAC OS) Just Cause 4 MAC Download Free for MacBook for MAC OS X and iOS. This tool will work on your Mac, all latest versions are supported. Our tool is reliable and will do exactly what you expect and more. Just Cause 4 for Mac can be downloaded and played very easy and free, right from this article. If your computer meets the minimum system requirements, you definetely must play this action game for Mac. The Just Cause 4 Mac OS X Digital Edition offers you access to all the extra content, like weapons, missions, locations and others. Just Cause 4 MacBook OS X Version. Just Cause 4 MacBook OS X Version is now available and can be played on all the MacBooks and iMacs. This amazing game is a third-person action-adventure one. It is developed by Avalanche Studios and published by Square Enix.In the game, you play as Rico Rodriguez who is the series protagonist in a world named Solis. Download just cause 4 for mac free.

I don't know if its needed but I've uploaded my csprof files for the 'portable project' and the android one
I'm a student and I'm learning Xamarin/visual studio so I'm probably doing something stupid (or not doing something that everyone does)

I should add that the app used to work, I had to make a presentation for it and it was launched during the whole thing.
The only code I changed was to change the TargetPlatorm with RuntimePlatform, and it seems to work fine.
I've tried to find some log file to help me troubleshooting, but I couldn't find any

Thank you !

PS :
This is the only code i've had/change

if (Device.RuntimePlatform Device.Android) {
sitebutton.Text = 'Notre site';
}

And :