I have a serious problem with creating cross-platform applications.
When I'm trying to create the project the following error displayed:
How to fix these issues?
I solved the problem,
The problem is with UWP project. This project is trying to restore packages from api.nuget.org but failed every time.
I removed this project from the solution and the entire solution is working perfectly now.
Note: UWP project can work separately, but it can't work with Android and iOS projects. I still don't know what the problem is, I reported this issue to Visual Studio report center.
But for now, I need only Android and iOS projects.
Related
This is my first time of using Visual Studio 2015 Community with Xamarin, and in using them to create Tizen apps.
In Visual Studio 2015, I chose File - New Project - Blank Tizen App (Tizen Xamarin.Forms Single). The files were generated, but virtually every keyword was not recognized i.e. red underline on them.
What configuration is wrong is my system, and how to fix them?
OK, so I did the following and it fixed this problem (somehow):
1. Uninstalled VS2015.
2. Reinstalled VS2015. I encountered installation failure on Roslyn and NDK-R11C.
3. I Ran VS2015 installer again in elevated mode (Run as Admin) and chose Repair. Roslyn was successfully installed but NDK-R11C was still failed, with the same error as before: Cannot extract the zip file to the target location.
4. Manually I ran the extraction of NDK using windows' default unzipper. I got unclear error message stating that NDK cannot be expanded.
5. Using Norton Commander, Extracted the zip file to the same target location. Success.
6. Ran VS2015, created the blank project. Now NuGet could get the updates, and after that the keywords were properly recognized.
I don't know, though, what was the connection between NDK and Tizen Extension. Maybe the act of reinstalling VS2015 just fixed the problem. At least now I got it now. Thanks all!.
I think it's bug of VS plugin. (it's preview version.)
Project - Unload project and Project - Reload project
I think this should solve your problem.
I have a problem with creating, building and deploying (still on Android) Xamarin/Xamarin.Forms projects on Visual Studio Community 2015
Version v14.0.25431.01 Update 3, Xamarin v4.2.0.680.
I can't build sample opened projects like MvvmCross or XAML examples. What I've done:
Clean and Rebuild
Update Xamarin extension
Update Nuget packages with removing dependenties
Close and reopen VS
Tools -> Clear MEF Component cache
List item
The most common:
IDE0006 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.
Who know how to solve it?
P.S: Solved by reinstalling Xamarin extension, Android SDK (NDK, emulators, etc.)
I had a host of problems with Xamarin under VS2015, e.g. locked files, compiler could not find files etc.. They all disappeared when I transferred my solution from a network drive to a local drive.
When I create a Xamarin.Forms application using Visual Studio Community 2015 Community on Windows 8.1 it shows me this error on load:
A problem was encountered creating the sub project 'App1.WinPhone'. This project requires a Visual Studio update to load. Right-click on the project and choose 'Download Update'
I've installed all updates available and trying on a newly installed Windows.
Note: I had this error in Forms.
How can I fix this error?
Note: There isn't a Download Update option in Solution Explorer.
Navigate to where you saved the project files that you created in Visual Studio. Default location is C:\Users\PSDan\Documents\Visual Studio 2015\Projects.
Open the project folder that you are experiencing problems with and navigate to C:\Users\PSDan\Documents\Visual Studio 2015\Projects\test\test\test.Windows folder. Inside this folder is a file called test.Windows.csproj.
Right click on that file and open with... using Visual Studio, by doing this it should detect the missing package and in my case automatically prompted to install the missing package.
I've been seeing similar errors for .Window or .WindowPhone and what I've observed is that it is due to missing SDK. Same might be the case with you.
Do you see App1.Droid appearing in the solution? (I guess NO)
Go to file explorer and locate App1.Droid.csproj (..\App1\App1.Droid\App1.Droid.csproj) and open this in a new instance. There it will pop up "Install Missing Feature" dialog and you can follow the steps to install missing components.
If your issue is the same as here:
Project required a Visual Studio update
then you may try and see if this solution works:
[Cause is] a mismatch of the target framework version and profile in the .csproj file. Despite the target framework being correct in the project Properties, they were not being correctly saved for whatever reason. Thus, when trying to install a utility library from nuGet, it left my project in the state you described.
The solution was to go by this site:
Framework Profiles in .NET
and find the correct combination, then manually edit the .csproj file to adjust <TargetFrameworkProfile> and <TargetFrameworkVersion>.
Installing Visual Studio Update 3 with selected features "Windows 8.1 and Windows Phone 8.0/8.1" and "Cross Platform Mobile Development" solved the problem for me.
Uninstall Xamarin completely, and reinstall it. That happened to me as well. I would uninstall Visual studio too. Install that first, then install Xamarin.
Edit: I know this sucks to do, but it was what the Xamarin team had me do to resolve it. As far as I know this is the official fix as of last week.
I had the issue on my notebook that visual studio would freeze when I open a solution who contains a UWP and two Xamarin Projects. Asp.net still works fine.
I thought maybe the installation is corrupt or there is an issue with Resharper. But I have the same issue now on another notebook who has a completly fresh installation and no Resharper installed so far.
I never had this with VS before Update 1. Any idea what might causing this?
EDIT: Turns out it was the Xamarin Plugin. After deinstall it, it works again..
This was solved with the latest update of the Xamarin VS plugin.
I am trying to generate an apk from xamarin Studio but some Android options under Build are not coming.
This is the screenshot of my project solution
Build option is marked but some Android options are not coming which are required to generate apk
Xamarin Studio
Version 5.9.7(build 22)
This screenshot shows actually what should come under the build option
I am currently developing a project and I am currently facing a big problem as I cannot generate apk in xamarin studio as some options are not coming.
Please friends help me out.
You selected your solution, not your project. If you select the project instead you will have other options.