Android Studio 3.0 (MacOS 10.13) AVD Crash Laptop - macos

Every time I try to launch an AVD in Android Studio 3.0, it crashes my entire laptop. I'm on MacOS 10.13 (High Sierra), and the crash happens when qemu launches (it never gets close to actually emulating a device). I have deleted all existing AVD devices, uninstalled and reinstalled Android Studio, the emulator (and HAXM), and even used homebrew to install qemu separately (to see if there was a different version that would NOT crash).
I have no idea where else to look or what else to do... I can run my app successfully on my phone that is connected, but just can't use the emulators at all.
Anyone have any ideas?

Related

Xamarin - Cannot use iOS Emulators?

Visual Studio 2019
I recently upgraded Xamarin.Forms to version v4.5.0.530. This required me to upgrade xCode on the Mac to 11.4. This required me to upgrade the Mac OS to Catalina. OK I did all of that. Since then though:
If I run the project on the iPhone connected to the Mac it still WORKS fine (as before).
However, if I try and use one of the emulators on the PC (ipad etc) it FAILS to deploy with the following message:
Selected device is not a physical device. Please select a valid device before deploying the application.
Well obviously it is not a physical device!?!
Of course I am doing everything the same way I did it before the upgrade, choosing Debug, iPhoneSimulator, my iOS project, iPad Pro (9.7... etc)
So, it works on the physical iphone but not on any of the apple emulators (android phone/emulators work fine).
Has anyone any ideas why this might be?
It was a setting at Solution level. For some reason with 'iPhoneSimulator' selected at the top, against the iOS project 'iphone' was selected. Changed it to 'iPhoneSimulator' and all is good in the world again.

Android Studio - Error Installing APK + Broken Pipe Error (on Mac)

So I am running Android Studio 3.3 on my Mac that's running High Sierra v. 10.13.4. My code compiles fine and runs on the emulator, but when I try to plug in my 2 Samsung Tab A's that I'm working with, Android Studio throws this error during the build:
java.io.IOException: Broken pipe
Error while Installing APK
Device samsung-sm_t580-5203b3db5aa1b4cfdisconnected, monitoring stopped.`
I've looked around and other people have suggested killing all ADB processes and restarting which I did. I've also restarted my Android Studio and my computer and the tablet. And it seems that the Android studio can find the tablet as it pops up on the ADB device listing, but just can't connect to it. I also saw something about Eclipse and Android studio running concurrently and causing issues, but I don't have Eclipse running so it can't be that either. However, when I tried my roommate's Android phone (Pixel XL 2), that works fine and the code builds and runs on the phone.
So at this point I'm a little baffled at why I'm having this issue. Any thoughts or suggestions would be awesome!

Macbook Air reboots on closing Android emulator

Macbook Air crashes whenever I close my Android emulator and reboots with error message. I have latest version of HAXM (7.3.2).
I don't find any proper answer on this topic but as my personal experience this happens due to extra load on memory while working on big Android projects and can be checked in memory monitor while building your app. So, now I am using real device instead of emulator and it's working fine.

Android Studio 3.0.1 for Mac not opening/installing SDK

I've downloaded Android Studio 3.0.1 for Mac and as I started it, it showed the splash screen for loading but did nothing else relevant (in the case, means showing the menu for starting/opening/importing projects).
After some research, I found that I could bypass this screen if I change the idea.properties and put on the following line:
disable.android.first.run=true
After that I can now reach the SDK Manager window, but no SDK update sites, platforms or tools shows up.
I'm running macOS X High Sierra 10.13.2.
Can anyone help me on installing the SDK tools and platforms?
Edit:
SDK Platform Screenshot
SDK Tools Screenshot
SDK Update Sites Screenshot
Uninstall and install it again. It should have downloaded the Android SDK components while installing but it doesn't seem to be the case. Make sure your connected to the internet during the installation, and once the installation is completed, ensure that they have been downloaded by checking the default Android SDK location on MacOS. Then try opening Android Studio without needing to change any config.
By the time this question was made, there was no solution.
The OS requirements were Mac OS High Sierra up to 10.12. There was no Android Studio for Mac OS 10.13.
Currently there is a version that supports Mac OS 10.13.
edit: also, I found out that permission problems may cause unexpected behavior of some apps (Visual Studio Code also broke). After the permissions check, the software worked like a charm.

Xamarin Studio Android Emulator Extremely Slow

I am using Macbook Pro 2015. I installed Xamarin Studio and Android SDK
I created AVD like this
When I start my AVD, it never moves further than screen showing "android" on it, even 1/2 hour after starting it
adb devices command shows:
adb devices
List of devices attached
emulator-5554 device
Is there something I am doing wrong in setting my emulator. I am aware that android emulators are slow but it wasn't this slow. I am also aware of HAXM but I found instruction to install them bit to flaky and I dont want to take a risk. I also know about Genimotion but that is not an option for me.
Is there another way to speed up the android emulator?
I had the same problem and I used an alternative solution to fix this problem.
Install VMware or VirtualBox
Download the ISO file of your android platform http://www.android-x86.org/download
Create a virtual machine with the ISO file
You can use these settings:
Target OS: Choose Linux
Target Os version: Other
1 GB RAM
Add a new hard drive: VDI drive, dynamically sized
Start the VM
Now you can connect Xamarin to the VM.
Find the path to your Android sdk-platform-tools
Open a terminal in your Host and locate sdk-platform-tools and type ./adb connect
Now you can run your code from Xamarin to the virtual machine, which is really fast compared to simulation from Xamarin.
make sure that Android version of your Target Framework is the same of smaller than Android version of your emulator you have chosen to build.

Resources