Android Emulator not Working on OSX - macos

I am trying to test my NativeScript Application on an Android emulator. So I followed the NativeScript instructions and installed the sdk and set up the emulator as instructed. But whenever I want to run an emulator (manually from Android Studio), nothing happens. I can see the "starting AVD" message on the bottom of Android Studio but there is no emulator popping out and no error displayed. Can someone tell me what might be wrong or where I can "debug" to see if he throws an error?

I had installed android-sdk using brew as well as Android Studio. Somehow, having 2 installations was causing this problem. When I uninstalled my brew installation of the sdk using:
brew cask uninstall android-sdk
it worked!

I recommend using Genymotion virtual machines for android, it is much faster and provides different API versions etc.

Related

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.

Nativescript install on windows doesn't work.

I installed nativescript from https://docs.nativescript.org/start/quick-setup page, and when I checked tns doctor I get this error:
I could search for the errors and probably learn a thing or two about the errors, but what I don't understand is why the installer itself didn't install Android SDK 22, or the other issues. I gave it full permission and it installed the sdk and other everything.
You need to android sdk 23 AND the sdk of your choice (ie 25). I would recommend using the installer instead of the cmd install line as it is a lot easier to use, which can be found here. If you use the installer, it installs the versions you need and changes the environment variables for you as well as the other parts it needs.
EDIT
Another thing to mention is that even though the installer changes the paths for you and installs the sdks, you still need to make your own emulator image. It's not hard to setup but unfortunately the nativescript installer doesnt do that for you
First up, install Android Studio
https://developer.android.com/studio
Install android API level 25 (Nougat), from the SDK Manager.
Also, setup a virtual device, if you want to run apps on emulator.
That should setup all necessary environment variables for building Android apps with nativescript.
According to the result of tns doctor, you have to install Android SDK.
You can simply install Andriod Studio. Start up Android studio, and use the built-in SDK manager to install required SDK, choose the correct version(>=23 <= 26) which was indicated in the result of tns doctor.
Alternatively, you can install Android SDK standalone, download it from Android developer site and extract files in your system, then follow the instruction of tns doctor, go to Android SDK folder, and find sdkmanager, and start up it to install required SDK with correct version.
Set ANDROID_HOME environment variable, the location points to the Android SDK folder, eg. E:\Users\hantsy\AppData\Local\Android\Sdk
Finally, try to run tns doctor again to check if all conditions are satisfied.
You can run the packaged Android app in one of the following:
Android SDK built-in simulator
A real Android mobile device
Genymotion Android simulator, more productive than SDK built-in one

No emulators will run in Android Studio 2.3.3

I have Android Studio 2.3.3 and I can run code on my device no problem. But, in this version, none of the Emulators work. I had a previous version at the end of 2016 and everything worked fine.
Here's a video showing an attempt to run a Nexus 6P emulator from AVD Manager. It seems to open then immediately closes. The same happens when trying to run any app, regardless of the SDK used or device emulated.
As I read somewhere here in SO, I quit Docker too but still the same problem. I also tried changing the Graphics setting from Automatic to Software but that didn't help.
Any help would be great.
I'm going to elaborate on my previous comment to the OP.
If you are on a Mac and running Docker, you may have a conflict that prevents the Android emulator from running. It appears that there was a conflict in Intel's Hardware Accelerated Execution Manager (HAXM) prior to 6.1.1 that caused the emulator not to load if Docker was running.
I have upgraded to 6.1.2 and I am now able to run Docker and my emulator.
Reference links:
Description of conflict
Download for HAXM 6.1.2
Instructions to remove previous HAXM install and replace it with the 6.1.2 download

Windows UWP development problems (Windows 10 Emulator and Xamarin)

I have a few problems that are driving me nuts.
I have the latest Windows 10 SDK (10586.212) and Emulator 10586.11. I have seen before (https://developer.microsoft.com/en-us/windows/downloads/sdk-archive) that the Emulator for 10586.212 is available too, so I download it.
All good till here. That the problem is when I want to install it it says I must uninstall the previous version 10586.11. Ok, no problem, I do it and re-run the install. And than it shows that it wants to install 10586.11 emulator again. Wtf ?
I was thinking it is just a typo error and press install, but no, it did install 10586.11. How can I get the emulator for 10586.212 ?
And another problem for Xamarin Studio. I installed xamarin tools and I have it in visual studio, but it didn't install xamarin studio ?
Thanks.
you should have to change settings of Hyper V. then try to install emulator it will working perfect.

How do i use GenyMotion with Appcelerator Studio?

The appcelerator team have released a new version of their IDE, which was called Titanium and is now called - for reasons that baffle me - Appcelerator Studio.
(The bafflement is because now it's almost impossible to google search for solutions for the new IDE because of the naming... )
Does anyone have step by step process for getting Appcelerator Studio to recognise and debug with GenyMotion?
Imagine that the genymotion has been installed in c:\GLoc and the Oracle VirtualBox was installed to c:\OLoc
If you have already installed Genymotion , then you can open up in Titanium studio and find emulators as below :
Detailed doc on downloading , installation and configuring Genymotion , please refer doc available here
When you are running test you might need to differentiate for specific environments.
To detect which emulator you are running your code in, you can use Ti.Platform.manufacturer, which returns unknown on Android Virtual Devices, but Genymotion on Genymotion emulators.
Reference
If you are running Titanium Studio 3.3.0 , then target SDK of app
should be 3.3.0 or greater.
Try refreshing device in emulators , if they are still invisible try opening Terminal Window.
Find Detailed instruction here

Resources