Reputation: 139
When I tried to run any sample application or a new one it shows this error. Can anyone help please?
Upvotes: 7
Views: 16931
Reputation: 809
I would advise you to use the Visual Studio Emulator for Android (get it here), it plays very nice with Xamarin and Visual Studio and sets up your system automatically. As an added benefit it is very fast!
Upvotes: 0
Reputation: 337
This is because of Hyper V.
Things you need to do are:
1.Turn off your Hyper V.(http://www.poweronplatforms.com/enable-disable-hyper-v-windows-10-8/)
2.Update your android SDK to desired platform.
That set. Now run your app. It will work.
Please let me know if still you have same error.
Upvotes: 0
Reputation: 729
you have to have the android virtual device downloaded.
here are a few options:
Now that you have the virtual device. you need to start one before you run or debug.
The specific error you are seeing is because you've not started the device properly before you debug, you should be able to see the device.
Now run the project, and you wont meet this error.
Upvotes: 1
Reputation: 74144
The error is telling you that you have not selected a device:
"Please select a valid device before running the application"
You need to choice a physical phone (or Android emulator) to deploy the application to.
Ref: Debug on Device
Upvotes: 5