I've problem about using Genymotion Android emulator for xamarin development.
I have intalled Genymotion desktop app and several Android devices within it. Whenever i run any of the installed device in Genymotion desktop app via start button, it works fine but there is no Genymotion emulator in the list of available emulators in Visual Studio, neither in Xamarin studio (There are only built-in Android Emulators and devices installed in Xamarin Android player).
I found some articles about using Genymotion Emulator for Xamarin and all of them says that : Both Xamarin Studio and Visual Studio with Xamarin discover it, no problem
I am using Visual Studio Enterprise Edition, Xamarin business editiorn and free edition of Genymotion, if that matters.
Genymotion needs to be running for Xamarin Studio (and thus Xamarin's VS plugin) to see it.
Once your Genymotion virtual device is actually running, then Xamarin will see it as a 'physical device' that it can deploy to.
Example:
Related
My issue is really summed up in this picture:
TL:DR: Android Studio's Device Manager can see my phones (one physical and one virtual), but neither of them appear in the dropdown at the top to let me run my Flutter app.
full: I just had to reinstall windows because of a failing SSD. I have installed Flutter, Dart and Android Studio following the same instructions that I had a few months ago when I first started learning Flutter.
This physical device worked to debug Flutter apps before I had to reinstall windows and still works to debug non-flutter android apps via Android Studio, so I know that the device's Developer and USB-debug settings are correct.
I have followed Google's instructions to update both my Windows and Android drivers (using the tools in both windows update tool and Android Studio>File>Settings>Appearance & Behavior>Android SDK>SDK Tools>Google USB Driver)
I have restarted both the software and the computer itself.
I have a Windows 7 PC and a Windows 10 PC. I have installed Visual Studio 2017 and specifically Mobile Development with .NET (all components) on both.
I am able to develop an Xamarin Forms app on the Windows 10 PC, which supports Android; IOS and UWP.
I have attempted to create an Xamarin app for Android on the Windows 7 PC. When I attempt to launch any emulator on the windows 7 PC; I see this message:
I have Googled this and I have tried:
1) Changing the platform of the app from AnyCPU to x86.
2) Reinstalling Visual Studio 2017
One post I found earlier advised me to use the Google Emulators instead of the Windows emulators.
1) Am I using the Google emulators in my screenshot above (notice that the emulators say: "Google APIs")?
Or
2) Do I have to install Android Studio (https://developer.android.com/studio) and do native Android development in order to use the Google emulators?
I'm fairly certain you cannot run an official emulator on Windows 7.
The Windows system requirements for Android Studio says:
The Android Emulator only supports 64-bit Windows
However, it seems likely that Genymotion will work - worth downloading and testing.
As a general caution, I've found the Android toolchain for deploying Xamarin Forms to be the most fragile part of Forms development. It's quite possible you can go to a lot of effort to set this up to still run into weird, impossible-to-diagnose errors with Visual Studio.
Update
As you have 64 bit Windows 7, it's worth trying.
General advice try using plain Android Studio and building a trivial app from a template within it. This applies to testing any environment, be it virtual or with attached devices. If this doesn't work, the added layers of Xamarin Forms are unlikely to.
Oh, and seriously, don't just test things on the simulators. You really need to test on hardware.
I installed visual studio for mac and developing xamarin based applications for ios and android.
I see all iphone simulators for ios but for android I do not see all simulators. I only see two simulators for android.
How can I add more android simulators to test my application on various devices?
For Android, you will need to create your google emulators manually. You can follow below steps to do that:
Install android platforms android emulator system image in Tools->SDK Manager:
Then open Tools->Google Emulator Manager and create a new Emulator for android:
You can open this emulator in your visual studio now:
Do you have to use Visual Studio Code? Android Studio is a free software and you can download the emulators for a wide variety of android phones. If you aren't already using Android Studio I would give that a try if you are developing android apps. Here is the URL for Android Studio https://developer.android.com/studio/index.html
Cheers,
Rachel
I'm having trouble getting any android emulator other than "Xamarin Android Player" to work (only with older versions of android).
What kind of virtual device/settings/properties should I use so that I can test newer versions of android and not have to wait 15 minutes for the emulator to startup?
is there a "Go-to" virtual device/emulator setup that doesn't take 15+ minutes to load?
(using windows 10/Visual Studio 17/2015)
The Xamarin android player has been discontinued for a while. As a visual studio user you should probably be moving onto the Visual Studio Android Emulator. There is a guide here on setup
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/
it is also available with visual studio 2017, and if i remember correctly is an option available in the Vs2017 installer.
I highly suggest Genymotion for most uses. You can download the free version which works well for most basic things (there are also a few small things you can do using the adb command prompt without having to buy the full version, such as taking screenshots).
Link to free version
They have a good list of different devices. I have also recently even got it successfully connecting to my Parallels Windows machine while the emulator is running on my Mac. Let me know if you need help with this specific scenario.
The other option for you is the Visual Studio Android Emulator. When it first cam out I tried using it but was not able to because I would need to run it on a Parallels VM which does not allow nested virtualization.
I set up a Hello World applicaiton with a single button. I can launch Genymotion from Android studio. The Android logo appears but the app doesn't appear anywhere. I feel I'm missing something obvious.
I'm using:
Genymotion plug-in 1.0.5
Android Studio 1.3.2
Virtual Box 4.3.30
Genymotion, with Windows 8.1.
I can't use the built-in Android AVDs because I have an AMD processor rather than Intel. I tried setting up a custom device but this won't run the app (no response). I've tried using my Android tablet to run the app on, but this won't work either.
Thanks for your help.