I downloaded the trail version of MonoDroid. I am going through the hello world tutorial and now at the part where I want to deploy my app to the emulator.
It comes up with a "Select Device" dialog with nothing in it. So I click on "Start emulator image", this pops up another dialog with available images. I have one emulator made and it is in this dialog box. I hit ok and I am not at dialog box with still nothing to choose.
So I am not sure what to do.
I am running Visual Studios pro 2010 on a window 7 64bit.
This seems to be a regression in Google's latest version of the Android SDK. Emulators will no longer run if there are spaces in SDK location path.
Uninstall the Android SDK and install it back to a new location without spaces and it should work.
Related
I just downloaded Android Studio(android-studio-ide-192.6241897-windows) for 64 bit.While clicking on this set up, it will ask, Do you want to allow this app to make changes to your device?
I have given yes,Then it won't shown any popup for installing android studio. But android setup running on background. I have tried multiple times and also restarted the system. But I'm still having this same problem.
How can i rectify and install the android studio in my system
I'm trying to install VS2015 Community in my PC.
When I install everything at the end the installer gives to me the following message:
I've tried to install, reinstall, update but anything changed. The only consequence that I can see is that when I create a new Xamarin solution, when I run the UWP project using Local Machine as target it starts, but then I obtain this exception message.
If I run the application from the Mobile emulator, it starts without problems.
Somewhere (sorry, I forgot the source) I've read that I should be sure to add following references for the project:
Windows Desktop Extensions for the UWP
Windows Mobile Extensions for the UWP
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm new to Xamarin and UWP, but UWP should be run to both Mobile devices and desktops, so why I have this behaviour? and what I can try to solve the installation problem that's probably related to this?
So, at the end, what I can try in order to fix the installation and allows the xamarin UWP project to run correctly in the local machine?
If I run the application from the Mobile emulator, it starts without problems.
According to your error message, it seems you are using StatusBar in your project.
While using StatusBar, please note that this is not a Universal API, this class can be only used in Mobile Device. Because status bar only exists in Mobile devices, there is no such thing in desktop, table or IoT devices. So if you use this class on Local Machine, you will get an error, but in Mobile Emulator, it can work without problems.
For more info, please see Requirements section of StatusBar.
Usually, when using StatusBar, we would use it with Runtime API check like following:
Windows.UI.ViewManagement.StatusBar statusBar = null;
if (Windows.Foundation.Metadata.ApiInformation.IsTypePresent("Windows.UI.ViewManagement.StatusBar"))
{
statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView();
}
if (statusBar != null)
{
//TODO
}
On Local Machine, as there is no StatusBar, ApiInformation.IsTypePresent method will return false. This will help us avoid the error. For more info, please see Write adaptive code.
But I've only the first one, not the second. Maybe it's related to the installation issue?
I'm not sure why you can't find the Windows Mobile Extensions for the UWP. But if you have used StatusBar and can build and run your project in Mobile Emulator, then you must have referenced Windows Mobile Extensions for the UWP. Without this extension, we can't use StatusBar and the build will fail.
Depending on the SDK you've installed, you can find following extensions in Reference Manager (Right click "References" in your project and then select "Add Reference" → "Universal Windows" → "Extensions").
I'd suggest you create a new Blank App (Universal Windows) project with Visual Studio to see if you have both the Desktop Extensions and Mobile Extensions. If you still have problem in new Blank App, I'd suggest you use Visual Studio Uninstaller to uninstall Visual Studio completely and also check the Control Panel to make sure you have uninstall all related stuffs like the SDKs. Then you can try to reinstall Visual Studio to see if it works.
When I deploy/run the Xamarin.Android app in Visual Studio (either pressing ctrl+F5 or play-button in toolbar), the Visual Studio launches its emulator for android (Note: It is "Visual Studio Emulator For Android", not SDK or any other emulator) without any difficulty and within a reasonable amount of time which works fine. But the problem is that it does not automatically run that app. Neither does it show any icon to run it.
I have not had much success with the emulator built in to VS.
However, you need to switch your output to "verbose" and monitor the output window while it is attempting to deploy. This will give you a wealth of information during the deploy. Likely, your deploy is failing, this will help you figure ouy why.
As a side note, the free Genymotion is a much faster Android emulator that I have had great success with.
I am new to Xamarin and i am trying to the sample app "XamarinStone". I can see the emulator is launching, but the application is not loading.
I kept at the same state for 1 hour, but still no hope.
I tried with Visual Studio 2012, but I am facing the same issue.
i installed all the necessary applications as per Xamarin Installer. What else I would need to do?
Can anyone help me to troubleshoot the issue.
Thanks!!
Could you please confirm that you've setup Xamarin latest version in both Windows & Mac PC?
And as per below screenshot of Visual Studio, you see list of iPhone Simulators?
And as per the second highlighted image "Show iOS Simulator" button, when you click on that image, it invokes iOS simulator on your MAC?
I'm trying to test a mobile website I'm building using Windows Phone 7, but I can't figure out how to do it. It seems that the SDK wants me to build an application first in order to use the emulator, but I'm not building an app, I simply want to test compatibility of my mobile site with windows phones. How do I do this?
If you install the free Windows Phone SDK you can run an emulator in standalone mode (i.e. without Visual Studio running).
Search for "Windows Phone Emulator" from the Start menu and just launch that directly.
Once in the emulator about the only thing you can do is launch IE Mobile.
(To enter URLs and other text using your real computer keyboard instead of the onscreen keyboard tap your "Pause/Break" to toggle keyboard mode)
You should be able to run emulator without building an app
try C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v7.0\Tools\XDE Launcher\XdeLauncher.exe
If now start visual studio and make an app f.e. Silverlight for Windows 7. Emulator will be loaded with debbuger attached. If you stop the app in VS, emulator should be still there. It has preinstalled IE which you can use to test.
Mind that it's better to test your web app on a real device.