I've just installed VS2017 with Xamarin, including MS Emulator. When I create a new blank Android project I can see the drop down with about 6 emulators in it. The majority start with 'Visual Studio'. I assume they are the Microsoft Emulator? When I try to run I can see in the output it's going to the Google emulator and then it complains about turning Hyper-V off. I'm lost as to why it's not running the MS emulator. Any ideas?
Related
I use Visual Studio 2022 on Windows for Xamarin development for Android & iOS. I use a Mac Mini with M1 for the iOS builds. All has been working fine for over a month. A few days ago I allowed the MAC to perform an update. Today when I tried to build for iOS, the Pair To Mac dialog said there was a monoframework mismatch and offered to install monoframework 6.12.0.174 on the MAC. Initially I chose Cancel,and then rebooted both machines. The same error occurred when I tried again. This time I allowed the install. After the install completed, every time I try to use the iOS Simulator it hangs as soon as it appears. I would appreciate some direction. I do not know how to fix it and I do not know how to back-out the mono install on the MAC. Please help.
Solution: I updated Visual Studio & Visual Studio for Mac to the current versions. Then found in the following in the Visual Studio ReleaseNotes:
Known Issues
Deploying an iOS app with Visual Studio 2022 and Apple Xcode 13.3 results in a Remote iOS simulator window with a blank/black screen. Workaround: Disable the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app should deploy correctly on the macOS host.
Following those instructions I disabled the “Remote Simulator to Windows” check box in the iOS Settings under the Tools - Options menu. The iOS app then deployed correctly, but on the macOS host, no longer can it deploy on the Windows machine from the Mac build host as in prior versions.
I am new to mobile development. Trying to follow tutorialspoint for my first xamarin android app. The emulator fails to start.
Emulator is set to use android 9.0. When running directly from Tools -> Android -> Android Device Manager, emulator runs but crashes. When running from Visual Studio debug, comes up with following error.
"Starting emulator testdevice ...
Checking HAXM compatibility.
Emulator testdevice cannot be started.
Runtime checks completed
NuGet package restore canceled."
where 'testdevice' is the name of my emulator.
Have been on Tools -> Android -> SDK Manager, then on Tools tab. Then Under Extras, I've selected the HAXM installer and clicked apply changes.
I've been looking online but nothing seems to help.
You might want to verify haxm support. On a command prompt type
sc query intelhaxm
For more info, refer to
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?pivots=windows
I m working on appium scripting for mobile application automation testing.
I m able to simulate android device using the emulator and run the script in the emulator.
Now my next task is to run in ios. Please let me know it is possible to do it in ios emulator in Windows machine. If so some headsup on it.
You can not. There are platforms like React Native, Flutter, Xamarin, etc which enables you develop iOS applications; but when it comes to debugging and deployment, you have to have a macOS, which in turn requires a Macintosh machine.
Yess you can use Remote simulator to windows by enabling it under
Tools >> Option >> Xamarin >> IOS setting >> Remote simulator to windows.
But you still need active mac agent connection to build your app
You can use Appium studio free community edition for testing iOS physical device from windows machine.
note:- I have tested appium studio personally and think it will be useful for others.
I am getting the following error when trying to run Visual Studio/Xamarin built application on the IOS Simulator.
Launch failed. The app 'App2' could not be launched on 'iPhone 7 Plus iOS 10.1'. Please check the logs for more details.
"App2" was created using the Tab Template, and NO code changes after rolling the application.
Windows environment: Windows 10 w/Visual Studio 2015 update 2
Mac environment: IMac Sierra fully patched. XCode 8.1 (what ever is most up to date).
I have connected the mac remote and pc. I can launch the iPhone simulator on the mac from Visual studio on the PC.
I get the error when trying to run "App2". It compiles fine, just won't run on the simulator.
I've searched here, and similar results speak of VS Crashing. Mine doesn't crash, just presents the error. NOTE: There's nothing in any log I can find with details by the way.
Ideas? Thanks!
EDIT: Just loaded up Parallels on the IMac and ran Win 10/VStudio. I get the same error. Again, xamarin remote agent connected and I can start the simulator from the PC, i just can't deploy to it.
After all the research and help from those here it comes down to a bug with the current version of Xamarin. Options are to wait until a new stable build is on the Xamarin site or get builds off of GIT. I'm choosing to wait, as I've not had great luck working with interim builds.
Xamarin that downloads with the new VS 2017 fixes this bug.
I am using ubuntu 14.04 os and i have adt bundle for 64 bit. How can i test the android application which is created in these adt on samsung galaxy grand?
either use android emulator that google provides (as far as i know, that won't be an issue even if your OS is 64bit), or connect your device using adb and run it directly.
It is very easy to test in windows.
I am using windows 7 ultimate + Android studio.
1. Install Android studio
2. create hello world android app project.
3. click 'run' it should list your device to run app on.
If it does not show in device list follow below linkto first install Handset Manufacturer specific driver for andoid.
download and install android driver for debugging