Installing Visual Studio With Xamarin
This article explains how to install Visual Studio with Xamarin, including all the Android SDKs where we can develop cross platform apps (iOS, Android, Windows) using Xamarin.Forms at once.
Step 1
Go to Visual Studio site and download Visual Studio 2015 Community Edition which is free.
Step 2
Run the installer and you will see the options window. Select Cross Platform Mobile Development also and click next to install all the required components.
Note
Alternatively, you can download the ISO file of Visual Studio and install it.
Step 3
It will take a lot of time to install all the components depending on the internet speed.
When you finish installing it, you may be required to restart your computer.
Step 4
Now go to https://www.xamarin.com/ and create an account. We need to login in to Visual Studio with a Xamarin Account.
Open Visual Studio, Go to Tools >Xamarin Account and Login with your Xamarin Account.
Step 5
Create a project in Visual Studio. Go toFile > New Project > Visual C# > Cross Platform > Blank App (Xamarin.Forms Portable)
Step 6
Build the project. The first time, it will take some more time to build the project since it downloads android repositories while building the project which is about a 200 MB zip file.
This zip files are located in C:\Users\[Your User Name]\AppData\Local\Xamarin\zips.
So be patient while building the project the first time.
When the repositories are successfully downloaded only then will you not get any errors and you can build and finally run your project.
Troubleshooting
When you get some errors related to Android, this is due to the old android APIs. So you need to install latest APIs from the Android SDK manager.
For this Open the SDK Manager and install the latest APIs. This will solve the problems related to Android APIs.
I also faced many problems and errors so I updated the SDK tools and installed the latest Android 6.0 (API 23) and all my errors went away.
Step 1
Go to Visual Studio site and download Visual Studio 2015 Community Edition which is free.
Step 2
Run the installer and you will see the options window. Select Cross Platform Mobile Development also and click next to install all the required components.
Note
Alternatively, you can download the ISO file of Visual Studio and install it.
Step 3
It will take a lot of time to install all the components depending on the internet speed.
When you finish installing it, you may be required to restart your computer.
Step 4
Now go to https://www.xamarin.com/ and create an account. We need to login in to Visual Studio with a Xamarin Account.
Open Visual Studio, Go to Tools >Xamarin Account and Login with your Xamarin Account.
Step 5
Create a project in Visual Studio. Go toFile > New Project > Visual C# > Cross Platform > Blank App (Xamarin.Forms Portable)
Step 6
Build the project. The first time, it will take some more time to build the project since it downloads android repositories while building the project which is about a 200 MB zip file.
This zip files are located in C:\Users\[Your User Name]\AppData\Local\Xamarin\zips.
So be patient while building the project the first time.
When the repositories are successfully downloaded only then will you not get any errors and you can build and finally run your project.
Troubleshooting
When you get some errors related to Android, this is due to the old android APIs. So you need to install latest APIs from the Android SDK manager.
For this Open the SDK Manager and install the latest APIs. This will solve the problems related to Android APIs.
I also faced many problems and errors so I updated the SDK tools and installed the latest Android 6.0 (API 23) and all my errors went away.
Reference:
Installing Visual Studio with Xamarin
Installing Visual Studio With Xamarin
Reviewed by Bloggeur DZ
on
08:51
Rating:
Aucun commentaire: