[#XAMARIN] Updating #Android emulators to work with #VisualStudio and #Xamarin

Hello!

Xamarin Studio 3.0 is an amazing product. The main idea is all the programming is with C#, so if you know C# already have almost a 7% of done Winking smile. That’s because, the programing language is important, but is most important the platform you use to create apps.

Going back to Xamarin, I found myself with the following exception, building and running a demo:

Target device (emulator-5554) has an API level of 12, but this application has a minimum API level of 15 set.

The minimum API level can be changed in the project properties on the Android Manifest tab.

This error is given in our list of emulators for Android only we have available 2 virtual devices, in this case for API level 10 and 12.

image

So what we have to do is “installed” or download new emulators that support in this case Api Level 15. Now it the time to search and run the Android SDK Manager.

Windows search quickly leads us to the Android SDK directory

image

And within the same can already launch [SDK Manager.exe], which is the app who manages Android SDK resources we have installed locally. In the next image you can see as I have selected resources for API Level 19 and I’ve decided to download plus a couple of images also to work with them.

image

After a few minutes, will finish the download and installation. Now you can close the Android SDK Manager and return to Visual Studio.

image

From the IDE launched the Android Emulator Manager in the option ‘ Tools / / Android/Open / Android Emulator Manager… ”

image

And we will see that we… still have only emulators for API Level 10 and 12. So that now create a new AVD with the definitions that we need. For this click on Create and for example, to create one for a Nexus 7 with the following configurations.

image

Once defined the values, we can already see the result of the process of creating the AVD.

image

It also appears in the list of AVDs

image

And you can launch it from the Android Virtual Device Manager

image

And we can see the emulator running in a few seconds

image

Note:At first glance, emulators for Android leave a lot to be desired when compared to the Windows Phone.

Now already we can return to our Xamarin Android project and… when we select the device or emulator for testing, we have available that we created in previous steps.

image

And now yes, Welcome to Xamarin Forms!

Saludos @ Home

El Bruno

image image image Google

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.