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
Related
I get this error when trying to launch xamarin emulator from visual studio 2017 device manager. I have downloaded image file tried resetting but nothing seems to work.
I have encounted similar problems, and my solutin are:
1)check the Complile Android version,Minimum Android version,Target Android version and the OS for your divice(You can get this by opening ADM and editing the device). Please sure you have intalled the SDK for the compiling version, target version and the device OS by Android ADK Manager.
2) If you have correctly installed the needed ADK and still get the problem, you can install the app on your phone and run the project again.
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.
I'm working on android studio when I run the application it shows an error when I tried to install emulator through sdk it shows
ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
I'm using Windows 10 and it does not have hyper - v so I'm unable to install HAXM .please tell me the solution?
I have ran into this issue before on OSX.
How I fixed it: Delete/Reinstall the Android SDK. Sometimes if you install the SDK in a different location then it was before, may help as well.
Also you could check and see if you need to install any new updates in the SDK it's self.
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
I have the latest alpha builds of xamarin recently uninstalled everything on both mac and pc (windows 8). I get the error "select a valid device" when trying to run the ios sample application.
I have set the platform to iphonesimulator, i am connected to the mac. The following is the log when building
Starting Agent IDB 4.0.0.1566...
Connected to the MacBook-Pro.local (192.168.1.120) with Limited support.
An error occured starting the IDB 4.0.0.1566 agent: The operation has timed out.
Starting Agent Build 4.0.0.1566...
Agent IDB 4.0.0.1566 is running
Agent Build 4.0.0.1566 is running
Starting Agent Designer 4.0.0.1566...
An error occured starting the Designer 4.0.0.1566 agent: The operation has timed out.
The Xamarin Mac Agent could not be fully started. Agents not started: Designer 4.0.0.1566. Please check the logs for more details.
Agent Designer 4.0.0.1566 is running
Connected to the Mac MacBook-Pro.local (192.168.1.120) with Full support.
The application works fine when run on the mac and the simulator works fine. I have the latest xcode and can run an application from xcode as well.
Properties of IOS project - i do see this error "failed to obtain profile information from the build server. Please, check the connectivity with the mac build host' > i have done this an everything looks connected.
Ideas??
For those that end up here in April 2018, there is currently an issue with Xamarin and xcode 9.3.
ensure that your mac has xcode 9.2 (I also had to completely remove 9.3), which you can download from the apple developers site.
un-install xcode 9.3 on mac
install xcode 9.2 on mac
restart mac
in visual studio - forget mac connection, re-connect when mac back up.
update*
Apparently this is fixed in Visual studio update 15.6.5, although not personally test myself yet
You should have development certificate installed on your MAC. Also your device should be provisioned for development. For details check here
Sounds like your root issue is that the Xamarin Mac Agent isn't connecting. Without this connection, most all iOS development cannot be run.
I can suggest two things.
1) reboot the mac - sometimes when you uninstall/reinstall or something goes wrong processes can be orphaned which cause problems, simple reboot might resolve your problem.
2) try the troubleshooting steps here: https://developer.xamarin.com/guides/ios/getting_started/installation/windows/connecting-to-mac/troubleshooting/
XCode 9.3 was recently released by Apple, that version is not compatible with the current Xamarin SDK. Xamarin has released updates to their SDK that fix the issue on both the Mac and PC. You can get them here: https://releases.xamarin.com/preview-xcode-9-3-beta-2-ios-11-3-macos-10-13-4-support-preview-2/