When I build my project in debug mode it builds forever. However there is no problem building in release mode.
This problem first occurred when I updated visual studio for mac to the newest version:
Preview 6 (7.0 build 2740).
This is what my debug settings look like:
Any ideas are much appreciated.
Check for xamarin.forms updates in both in the ios and xamarin project. It could be that theese are not updated even though the solution is updated.
Xamarin.forms package under the iOS project might have an older version
I cannot really help you because I don't know what type of project you tried to run or which OS X you are working with.
If such an Error occurs, always check your code or try restarting your mac.
Tip: "Visual Studio for Mac Preview" is still in its Alpha. Use the Stable Update channel to avoid errors like this.
Related
So I already have these installed. I had Android Studio 4.2.0 but deleted it and got 4.1.0 to fit the circumstances. Now, it's telling me to get 4.0 and 4.1, which is confusing me a lot. I have Flutter and Dart installed, so I don't understand where I went wrong. s
I think your previous version of Android Studio isn't deleted properly. Try deleting its caches too. And I don't think these dart and flutter plugins installation is required for you as you are using visual studio code.
Try running a sample project and see if it runs or not.
Happy Coding
I'm trying to connect my Windows 10 to my Mac to build a Xamarin.Forms app as I've done in the past. However, I'm getting the following error:
Xamarin.iOS versions mismatch The Xamarin.iOS SDK version installed on
Mac is not compatible with this version of Visual Studio. Would you
like us to install Xamarin.iOS '11.14' for you? This will overwrite
any existing Xamarin.iOS installation on your Mac.
Indeed, the version on the Mac is 11.12.0.4. I'm on the stable channel, and it's telling me there are no updates. and I'm on the latest VS on my PC - 15.8.1.
I tried clicking 'Install' but it fails telling me that
There were problems installing...
Is there a way to solve this without uninstalling and reinstalling Visual Studio (which might not even help)?
After further searching the only solution at the moment seems to be to use the beta channel in order to install Xamarin.iOS 11.14 on the Mac.
However, the better solution seems to be to wait. It's supposed to be updated
really soon [Yes. That's a quote.]
Sources for all of that (and how to upgrade using the beta channel):
https://github.com/xamarin/xamarin-macios/issues/4623
https://developercommunity.visualstudio.com/content/problem/311561/installing-xamarinios-1114-from-the-vs4win-connect.html
EDIT
Visual Studio for Mac has been updated. We're supposed to be able to update it and it's supposed to work now.
I cannot hit breakpoints in Xamarin Studio since yesterday afternoon. Restart, clean, rebuild still no joy. Using Mac OSX. I am aware this issue is in version 5 of mono. But I am on 4.8. Is anyone having the same problem. Very frustrating.
Dump your local copy and pull a new copy from the repo.
I using Windows 10 and am trying to create a Xamarin.Forms - Blank Xaml App (Xamarin.Forms Portable) project for the first time. I have Visual Studio 2015 Enterprise Update 3 installed and have tried uninstalling, reinstalling, and repairing multiple times.
When I create a project, I get the following errors:
"The name 'InitializeComponent' does not exist in the current context"
"Error encountered while loading the project. Some project features, such as full solution analysis for the failed project and projects that depend on it, have been disabled" - for App, Droid, UWP, WinPhone, Windows, and iOS
"The XamlCTask task failed unexpectedly..." - for UWP, WinPhone, Windows, and iOS
I tried this on my work computer and home computer and I had the same issues with both.
I have tried updating Xamarin.Forms nuget to the latest version and the created 36 errors with Droid. I also tried going to c:/users/[YOURNAME]/AppData/Local. Delete the Xamarin folder and that did not solve the issue.
I tried creating other Visual Studio projects that did not involve Xamarin and did not have any issues with those. I know the issue is with Xamarin (probably something with Android) itself, but I don't think that there is anything that I am missing from the install. I tried installing it by first installing Visual Studio, then going to Modify and adding Cross Platform. That didn't work, so I uninstalled then downloaded the Xamarin Installer. I had the same issues with both.
I created a blank Android App and that give me the warning - "aapt.exe" exited with code - 1073741849".
A blank app for iPhone does not give any errors or warnings.
Windows Phone does not give any errors or warnings either.
Any ideas of what I should check for so I can get this working?
Here is a picture of the error that I'm getting
Try updating to the latest version of Forms to get rid of the XamlC errors. Assuming you haven't updated, the template is using a modestly old version. As for the aapt error, if you have the N SDK preview installed, removing that should help. Alternatively, make certain that you have up through API 23 installed.
I am developing a Xamarin Forms (PCL) application for IOS and Android Platform.
My Xamarin Studio version is 5.5.4 (Build 15). I am on stable channel.
My Xamarin Forms dll version is 1.3.0.6292.
I have also added a Xamarin Forms Labs reference from NuGet, v1.2.0.
Since yesterday, whenever i am building the solution, i get following error:
error : Error initializing task XamlG: Not registered task XamlG.
Any possible resolution for this error? I have tried clean and build multiple time. Even deleted the entire source code and redownloaded everything from source control but same error.
This error can occur if you have upgraded from an older version of Xamarin.Forms to a newer version. The underlying problem is that the wrong Xamarin.Forms.Build.Tasks.dll is being loaded compared with the one that the custo MSBuild Xamarin.Forms.targets file is expecting.
There is a bug in Xamarin Studio where the old build Xamarin.Forms build tasks are still used after the NuGet package has been upgraded. You can workaround this by closing and re-opening the solution.
However you say you have deleted the source code and downloaded everything again so it sounds like you have a different problem. It may be that your project is trying to use two different versions of Xamarin.Forms at the same time. I would look at your project files (.csproj) in a text editor and make sure they are all using one version of Xamarin.Forms. Check that they are all referencing a single version of Xamarin.Forms.targets and it is the same version.
This is silly.
I just recloned the project in a new fresh folder and build it from scratch and it worked. The more i am using Xamarin Forms, the more buggy and unbaked it seems. There are random issues which get fixed just by rebuilding the project. Or like Matt pointed in his answer below, by just restarting the studio. In my programming experience with different IDEs and platforms, only Xamarin seems to have these problems regularly.