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
Related
I am new to Android Studio and the purpose I use Android Studio is just for the emulator, not to develop apps etc. I am using the latest Android Studio version 3.6. I want to do mobile performance testing on LoadRunner, and I will use Android Studio Emulator instead of real device. The problem now is, I only can run the emulator in the Android Studio apps itself. The performance test tools will need the emulator exe path. May I know if I can run the emulator in a standalone apps? Such as run in Windows in exe file? So far I know, when I downloaded the Android SDK package, it doesn't include the emulator.exe file.
I tried searching and tried the suggested solutions already but not working. May I know what's the problem here?
Using emulation to record mobile applications
You do not have to use Android Studio
I would suggest something like genymotion for personal use.
https://www.genymotion.com/fun-zone/
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 want to work with android studio in my tablet.
Do you know how to installs this program on my tablet?
You should use AIDE for using android studio and Eclips in android os
it works perfectly and also it has all android studio futures you can download it from this link:
https://play.google.com/store/apps/details?id=com.aide.ui&hl=en
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:
There are many examples of questions about how to speed up the android emulator. Here's an example: Why is the Android emulator so slow? How can we speed up the Android emulator? Some of the solutions are, "Use a different emulator". But, can cordova be configured to use these different emulators? If so, where do I configure this? By default, cordova is looking for an AVD (android virtualization device).
Install Genymotion then run:
cordova run android
Cordova recognizes Genymotion as a device not an emulator.