Windows Phone Emulator in Windows 10 not working [closed] - emulation

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
When I run a UWP app in Windows 10 RTM, it gives error like "Unable to Verify that virtual machine is running"? After I restart my Visual Stuido, the emulator will stay on the OS start for a long time, then failed.

First please try to make sure that you have met all the System requirements for the emulator for Windows Phone as described in the following article:
https://msdn.microsoft.com/en-us/library/windows/apps/Mt162269.aspx.
Since Windows Phone Emulator runs as a virtual machine on Hyper-V, please refer to this link: Troubleshooting Hyper-V (https://technet.microsoft.com/en-us/library/Cc742454.aspx) to check if this issue is caused by the Hyper-V.
After that please try with below steps which has been posted by #Prashant H Phadke - MSFT in here(Windows Phone emulator not starting (couldn`t setup the UDP port)):
1.) Open Hyper-V
2.) Shutdown any existing configured Phone emulators.
3.) Click on "Virtual Switch Manager"
4.) Click on the "Windows Phone Emulator Internal Switch"
5.) Remember what the settings are displayed there (because you will delete it and recreate it)
6.) Delete the existing "Windows Phone Emulator Internal Switch" by clicking "Remove"
7.) Click "Apply" and "OK"
8.) Re-create the "Windows Phone Emulator Internal Switch" by clicking the "New virtual network switch" and use the same settings you remembered in Step 5.
9.) Then try to F5 from Visual Studio - which should configure a new emulator on the right virtual switch.
Besides, please also try to troubleshoot the emulators based on here: https://msdn.microsoft.com/en-us/library/windows/apps/jj681694(v=vs.105).aspx , although it is for Windows Phone 8 emulator, but some workarounds should work for the Windows Phone 10 emulator.
If the above information still can not help, please try to repair or reinstall your Visual Stuido.

Related

Unable to connect the android studio emulator with vs code [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I am unable to connect the android studio emulator with the vs code editor
enter image description here
In image it shows no devices
However when i checked with the flutter doctor command it showed 1 device connected
enter image description here
You could try select the emulator manually.
In your VSCode press CTRL + P then type >Flutter: Launch Emulator and select an existing emulator or create a new Android Emulator.
Another option would be launching the application through the VSCode terminal. Run flutter emulators to get the list of emulators and then flutter emulators --launch [emulator id]
flutter emulators
flutter emulators --launch <emulator id>
To launch a specific device:
flutter devices
flutter run -d <device id>
Refer this Link if you are a windows user. you could basically launch emulator from terminal.

Cannot launch the app - "Emulator-5556 [DISCONNECTED]" keeps appearing and disappearing [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Android Studio functions correctly for the most part, but I can't seem to use the emulator.
In the deployment target menu an emulator called emulator-5556 [DISCONNECTED] keeps appearing and disappearing about once a second. It always starts about 10 seconds after adb is initialized, when I open the run menu for the first time.
Whenever it does this, I cannot seem to run my app on the emulator, or on my own phone. The emulator starts up, but the app never gets launched. I've had the issue on every project I've opened.
In the run log this message appears whenever the issue is occurring and I try to run the program:
Device emulator-5556disconnected, monitoring stopped
I've also made a screen capture of the issue.
I found some other threads talking about other problems with disconnected emulators being fixed with the kill-server and start-server command, so I tried this, and while this does stop the issue for a little bit, it starts flashing the disconnected emulator again in the menu 10 seconds after I reopen the run menu.
Any ideas on how to fix this?
I've tried:
Restarting adb with kill-server and then start-server
uninstalling Android Studio and reinstalling it
deleting the SDK files and reinstalling them
deleting gradle, and reinstalling it
I've rebooted the computer multiple times
I think it's unlikely to be a computer related issue since I know several other people with the exact same laptop who didn't run into this issue.
The issue was that I had VideoStream installed on my laptop, which was using port 5556. Uninstalling the app fixed the problem.

Android Studio doesnt recognize my device - Nexus 6P [duplicate]

This question already has answers here:
Cannot see Nexus 6P for debugging
(5 answers)
Closed 4 years ago.
I am struggling to figure out the problem with my device not being recognized in Android Studio. However I do see it from file explorer and can browse the device files.
OS: Windows 10
Device: Nexus 6P
Yes, I did some research before posting this question, so I'll enumerate what I tried:
Enabled USB Debugging
Installed Google USB drivers from the SDK manager
Intalled HiSuite(apparently including some device drivers)
Switching between MTP/PTP
Restarting Android Studio several times
Restarting my computer several times
Every USB 2/3 ports of my computer
Tried updating drivers from device manager(however it did not suggest anything)
adb kill-server / start-server
Any suggestions would be greatly welcome!
Thanks in advance!
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
Try to use ADB over Network but it depends what Android version you have.
In Developer options you should see ADB over network section if not then sorry for this unhelpful advice.
check for SDK platforms in Android Studio whether you have installed the Android 6.x(N), Because Nexus got Android N updates, so it may be one of the issue you faced...
When I had this problem what I did was install the drivers manually. What you do is download the drivers from the google website NOT with Android Studio then you go into device manager and right click on your nexus. Then go to drivers tab and hit the update then manually find drivers on computer. Navigate to the downloaded drivers and click on them. Device manager will install your drivers and should fix the problem. Also for drivers you may want to try this or this driver Also please post these kinds of questions on the Android Stack Exchange Thanks!
If you have already tried all those steps , i would like you to install pdaNet software . This will automatically detect and repair the driver and you can find device in Android Studio.
This has worked for me
SO references :
Android studio doesn't list my phone under "Choose Device"
eclipse or android studio not recognize my phone on usb debugging mode
References for installing the drivers and enabling USB debugging is available here for reference , you could cross check with as well.
Reference 2 : Installing pdaNet
First of all I make sure that I've installed google's usb_driver. Either through the SDK or what SlashJ said:
Apparently, installing 'Google USB Drivers' from the SDK Manager doesn't actually install them!
You have to go to:
'C:\Users\your_user\AppData\Local\Android\sdk\extras\google\usb_driver\'
right-click on 'android_winusb.inf' and install.
- SlashJ
After that's done:
Insert your device into your PC
Open device management
Click start > run devmgmt.msc
Right click my PC > manage > devices in left panel
Check if there's a tab android device and look for your device or an ADB Interface, Otherwise just search for your device
Right click your device and Update Driver Software
Browse my computer for driver software
Let me pick from a list
Search for google or android in the left pane.
And select ADB Interface in the right.
Continue installation and it should work now.
You can try to unplug and re-plug your android device.
Maybe you also have to enable developer mode on the device.
Here's a walkthrough
I have a similar problem with my Wiko phone, I had installed the wrong usb driver and I could not do it manualy.
In developer mode, enable the usb debuging
Try to update your driver with apk installer for Windows 10 even if it is already installed:
APK DRIVER
This tool permits to install automaticaly the right driver.
Have a look to my previous question fo further details:
How can I run my ionic app on a physical device (Wiko phone) on Windows?
i just have that problem and anything works for me
what help me is to click a lot of time on the build number (setting-about phone-build number) and magic happens :)
Did you check in Android Studio Run tab->Edit Configurations->Target set to USB device.
if that doesn't work, try updating Android Studio, and/or device's firmware, also here is a similar question, involves a nexus and windows 10: https://stackoverflow.com/a/31938193/3817308
I hope this help.
I'm not sure how you installed adb driver. If your device is displayed in device manager but not as a ADB device, try these steps
Go to Control Panel and open Device Manager.
Find the device
Right click the device and select properties.
Select Driver tab, then click the Update Driver button.
Choose Browse my computer for driver software.
Let me pick from a list of device drivers on my computer
Browse for the .inf driver file. Open and Next.
Select ADB interface from device list (i can't remember the exact name)
Install
There's another another Stack post (Cannot see Nexus 6P for debugging) you might want to try.
You need to manually download the driver here (http://developer.android.com/sdk/win-usb.html)
Go to "Devices and Printers", right-click on "MTP", and choose properties.
Click "ADB interface", then click "Properties"
Go to "Driver" tab and update driver with the file you just downloaded. (Make sure you unzip them first)

Can you deploy XNA game application to WP8 in VS2012?

As in title, I am trying to deploy my game application to my wp8 device in VS 2012, but it will only run the emulator and nothing else.
There are no options for deployment other than 'start' unlike in a windows phone game(4.0) or a windows phone app on VS2012 where you can select 'Device'
Sorry if this question is a bit vague, just hitting a wall here and would appreciate any help.
Thanks in advance!
start option automatically updates when you open the project.as per your project it will be updated,if you open windows 7.1 project then 4 type of emulators will be displayed in the list .if you open wp 8 project then there will be only start option. when you connects the phone device to computer in that list you will get device option by selecting it you will be able to run projects on your deice. unless you connect any device to computer IDE will not display device option.

App deployment failed, invalid pointer Windows 8 phone SDK

I am using windows phone sdk 8 and visual studio 2012 in windows 8 pro. When i run my application it give this error that application deployment failed and emulator gets shut down. What is solution for that please tell me. Thanks
1- Press (HOME+W) and search for "turn windows features on or off"
2- deactivate the hyperV of ur system
3- apply and ur system will restart
4- activate hyperV again

Resources