Click here to Skip to main content
15,912,977 members
Articles / All Topics

Xamarin & VS 2015: Break the Error Message into Chunks.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
11 Aug 2015CPOL2 min read 5.7K   1  
Xamarin & VS 2015: Break the error message into chunks

No project is good without a bug and no build is good without an error. Sometimes, a smallest change can fix a major error. We may take more time to find the smallest change, as we concentrate more on the technical side of the error than the logical side of it.

The fix for your error lies within the error message. So read the error message carefully and repeatedly.

Having said that. Recently, I was exploring Visual studio Emulator for Android released along with Visual studio 2015. I created a new “Device Profile” as shown below:

Visual studio Emulator for Android

Visual studio Emulator for Android

I verified the device profile by running 5″ KitKat(4.4) XXHDPI phone emulator and it worked as expected. With a smile on my face, I created a new Xamarin.Android project.

New Project -> Visual C# -> Android -> Blank App(Android)

I wrote a code snippet which prints “Hello World!” as the android app launches on the new device profile. I just ran the play button (my way of calling RUN) and all I could is a pop-up shown below.

Error

Error

It says “The project  needs to be deployed before it can be started. Verify the project is selected to be deployed in the Solution Configuration Manager“. If you read it carefully, the solution to this error is right there. Dissect the two lines into small chunks and read it repeatedly. Following this chunk model, we will definitely come out of the famous notion.

1 FIX = 2 BUGS

Following this Chunk rule, I simply navigated to Configuration Manager – you can reach here in two ways

  1. Click “Any CPU” dropdown (Next to Debug) in the ribbon.
  2. Navigate to Build tab and you will see Configuration manager as the last option.

Once you click, you will see a panel shown below.

Configuration Manager

Configuration Manager

Now go to Deploy column and select the check box next to Droid project. Click on play button and your Visual Studio Android Emulator should launch as expected and should show the output.

To conclude, all you need to know is “Break the error message into Chunks

Filed under: C#, Developer, Mobile, Visual Studio, What's new in .NET, Xamarin Tagged: Android, emulator, The project needs to be deployed before it can be started. Verify the project is selected to be deployed in the Solution Configuration Manager, Visual studio, Xamarin Image 4 Image 5 Image 6 Image 7 Image 8 Image 9 Image 10 Image 11

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Comments and Discussions

 
-- There are no messages in this forum --