I wrote first app using VS2012, Its giving error that is "Error 1 Deployment failed because no Windows Phone 8 phone was detected. Make sure a phone is connected and powered on.
"
but I did not attach any phone; I just want to run it on emulator. I am unable to select emulator from Visual Studio Device option as Its only showing me "Device" option. please help me how emulator options will come in Device options
After you install the SDK bundle. XDE emulators begin to setup themselves immediately consuming a large ram from your rig. It might have happened that you restarted your pc/laptop while the XDE was setting up.
So i would suggest you to Unistall and Reinstall again the SDK package with Update 3 to enjoy no problems. Also please note that you are running windows 8.1 pro or Enterprise/Embedded Industry pro edition.
You should have the Windows 8.
You should have a Hyper-V compatible computer.
You should enable and configure the Hyper-V. Look here: http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj863509(v=vs.105).aspx
If you use a laptop, development on the emulator will be a hell.
Try grant all permission level to all user for your virtual machines in this path:
C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Emulation\Images
Only restart the device or the emulator and the deployment will success
You need to have Hyper-V installed using Control Panel|Programs & Features|Turn Windows Features On/Off.
If you installed Hyper-V AFTER Visual Studio 2013, you will need to repair Windows Phone x.x Emulators in Control Panel|Programs & Features.
Reboot.
The Emulator should appear in the Visual Studio Run/F5 button.
It will take several minutes to start the emulator on the first try. It will appear to hang. Wait at least 10min. You can use Hyper-V Manager to connect to the emulator directly and view progress.
Related
iOS Remoted Simulator in windows. My visual studio connected to mac successfully and also all Simulator show in visual studio on windows but problem is when clicked on any Simulator its just connecting window show a long time but not connect
First, you need to exclude the connecting problem. If it is not, that's maybe the simulator problem(official docs:https://learn.microsoft.com/en-us/xamarin/ios/get-started/installation/windows/connecting-to-mac/).
The simulator list shows on visual studio, can't make sure you pair to the mac successfully, it's maybe the cache. You should check the 'Pair to Mac' icon in visual studio, make sure it's green, as it will check the connection situation regularly. You can click it for the connection details.
If the 'Pair to Mac' icon is green, and shows a connected mac as you click it for details.
That's maybe the simulator problems. You'd better check it on mac. But it's really a small probability event.
And This is a standard solution to this problem:
Some suggestions :
Upgrade everything to the latest (VS for mac , VS for windows , XCode ).
Restart PC and visual studio .
Delete bin and obj folder on windows side.
Reconnect mac agent .
Clean and rebuild .
Change simulator(iPhone X e,g)
Disable remote simulator to Windows (Tools - Options - Xamarin - iOS Settings)
If problem persists , attach your build log here (Help - Xamarin - Open Logs).
(https://forums.xamarin.com/discussion/176150/simulator-doesnt-show-up)
When I just installed a Visual Studio 2017 and created my Xamarin.Forms application, it ran fine on my Windows 10 PC. However, I then installed some apps from Steam (which is the only thing I can think of that could change system settings). After that, when I try to create another Xamarin.Forms project, it does not deploy well to my machine and gives the following error:
DEP6200: Bootstrapping failed. Device cannot be found.
SmartDeviceException - Deployment failed because no
device was detected. Make sure a device is connected
and powered on. [0x80131500]
Strangely enough, my first app continues to build and run fine, even if I uninstall it from Windows and then deploy it again.
What could be the issue?
I have just noticed that Visual Studio makes ARM the default architecture. Changing it to "Any CPU" brought back the option to run the app on my machine.
With Xamarin.Forms I'm developing a mobile app. In Android I get this succesfully running on a device. I succeeded to create an app package from the UWP project and install it on my own Windows 10 PC. This is also my developing machine, so it's in Developer Mode by default. So it runs here without any problems.
My purpose is to get it running on Windows 8.1 Pro (tablet size). It just needs to consume the app. When installing the app by using the script, it's throwing the error that no developers license is found. On this device I didn't found anything to put it in Developers Mode, but it seems me that this is not needed, because it only consuming the app and no developing will take place on it.
It's is an internal app, so no need to place it on the Windows Store.
So my exact question: how can I install this app on this device without setting everything up for a Developer?
The answer would be no. Windows 10 has more new API and concepts that are not available on Windows 8.1. UWP app will not backward compatible to Windows 8.1. But WRT app will be Upward compatible to windows 10. It means that the windows 8 store app could run in windows 10. for more please refer Move from Windows Runtime 8.x to UWP.
I know it's a re-post but I've tried so many different solutions and so far nothing fixed my problem.
I'm having an annoying issue with my Microsoft Visual Studio 2015:
Every time I build my project, I get an alert message saying "Unable to connect to the configured development Web server".
I had an issue when I tried to install MVS 2015 at first but fixed it by disabling the HTTP driver in device manager. After that everything worked great for a week or so, I only had to able/disable the HTTP driver depending on what I wanted to work on. Since today, disabling HTTP doesn't change anything and I always get the same alert message.
My set-up:
HP EliteBook 8560w
Windows 7 professional with Service Pack 1
Intel Core i7-2630QM # 2.00GHz
8.00 GB of RAM
64-bit Operating System
What I've done:
Disabled/Enabled HTTP driver
Install every windows update (windows 7 pro)
Install every MSV 2015 update
Uninstall/Install IIS Express
Delete the automatically generated IIS Express Folder
Inserting this command in Command Shell
netsh http add urlacl url=http://{ip_addr}:{port}/ user=everyone
Opening MVS in administrator
Look if SSL was enabled (it wasn't)
Closing skype or any apps using IIS Express
Close Chrome
And probably more since I got to page 4 of google's results when I searched for this error message.
So yeah, I'm pretty clueless about what to try next, I've read somewhere that installing windows 10 could fix it but I have my doubts about that.
If anyone has any solutions or anything to help me troubleshoot the problem it would be SUPER appreciated!
Thanks,
C.
Update: I should of done a while ago but I forgot, managed to make it work by installing Windows 10.
Using the default Blank Cordova project in VS2015 update 1, I try to publish (Debug > Android > Device) to the Android Emulator (Tools > Visual Studio Emulator for Android) and I get the following error:
Severity Code Description Project File Line Suppression State
Error Unable to deploy to Android device, no attached device was found. If you recently attached a device, you may need to wait a few seconds before it is recognized. BlankCordovaApp2
I am also getting the following error when I click Yes in the pop-up deployment errors window :
Operation not supported. Unknown error:0x80070057
Here's the device list from ADB confirming the VM is being detected.
No luck with the following.
I reinstalled Android SDK Manager and updated files.
I removed and then re-installed VS2015 community.
I can use adb.exe to check for the emulator device and it sees the device.
The android emulator appears to be working and displaying properly.
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Android SDK is pointing to the correct location
renamed CoreCon
Ran Dependency Checker (Tools > Options > Tools for Apache Cordova)
I can deploy the .apk package on the Android emulator using adb install folder\location\xxx.apk
Any thoughts?
All I had to do was enable Android USB Debug on my phone.
Go to Configuration > System > About the Phone (My Phone is in Portuguese, so the menu options may differ a little bit)
Scroll to the bottom and tap on "Version number" around 10 times
A new option called "Developer" will be available under Configuration > System. Open it
Enable USB Debugging
Deploy the app again
Windows 10, VS 2015, Cordova 6.3.1, Using Andriod 23
I hab some trouble with different adb.exe errors and i fixed all of them. Perhaps this checklist will help. (Some things were already mentioned but nevertheless^^ her is my list):
Make sure yor device is connected to your Laptop. Check this with the console command "adb devices" (you have to be in the directory where adb.exe is)
If you see more than one an emulator is running , kill him (restart pc) if you see nothing check out another usb cable.
DELETE the app from your phone e.g. if you changed developing machine.
When installing MS Visual Studio you can first uncheck all and then only check Javascript->Cordova. Setup will make the rest. But install node.js and andriod-sdk (only sdk not the wohle andriod development studio... no need)
with the Andriod SDK-Manager make sure you have "Andriod sdk build tools" ONLY for your version installed.... for me 23.. AND Extras->"Andriod Suppot Repository" i have it like this:
here you can see my SDK Manager Part 1
here you can see my SDK Manager Part 2
5.Make sure you have developer options activated on phone and USB-Debugging is enabled. And on startup make sure you allow access from the Machine e.g. laptop to your device e.g. phone. A prompt should appear on your device.
cya
I encountered a similar problem.
Solution:
1)Open Developer tools in android devices and Revoke USB debugging authorizations
2)Then restart USB debugging
I was able to resolve this by editing the config.xml file and changing the Target API Level to match the installed version of the Android OS on my phone for development. Here is a link to the google developer docs:
https://developer.android.com/about/versions/marshmallow/android-6.0.html
It contains info on backward compatibility to help with setting the version appropriately.
Here's a work around to my problem. It doesn't fix the original problem, but it does allow me to debug using the Visual Studio Emulator for Android
Work Around:
Use the Debug > Android > VS Emulator XXX in the drop down to open the emulator and debug. VS Emulators can be added by using Tools > Visual Studio Emulator for Android
Previous Workflow:
Open Tools > Visual Studio Emulator for Android
Launch the Device Profile
Wait for the Device Emulator to open
Debug the project by using Debug > Android > Device
Close VS
Open it as Administrator
Tools > Visual Studio Emulator for Android
Start an emulator
Voilá
It worked for me