警告:跨平台Xamarin空白应用程序(Xamarin.Form便携式) [英] Warnings: Cross-plaftorm Xamarin Blank App (Xamarin.Form portable)

查看:139
本文介绍了警告:跨平台Xamarin空白应用程序(Xamarin.Form便携式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Warning 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.   HelloWorld.Droid        1   Active


    Severity    Code    Description Project File    Line    Suppression State
Warning     The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'HelloWorld, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'HelloWorld.dll'
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.GetAssembly(String fileName)
   at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(ICollection`1 jars, ICollection`1 resolvedResourceDirectories, ICollection`1 resolvedAssetDirectories, ICollection`1 resolvedEnvironments)
   at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() HelloWorld.Droid            

我遇到了与此

I have got the same problem as this one. But there wasn't a solution to it.

我尝试更新xamarin,使用xamarin重新安装Visual Studio,几乎安装了所有android sdk和工具,但错误仍然存​​在.我什至提出了一个新的解决方案,但出现了相同的错误.

I have tried updating xamarin, reinstalling visual studio with xamarin, installed almost every android sdk and tools but the error stays. I have even made a new solution but the same error appears.

更新:

在提到问题dev_man的提问者的建议下,我删除了除api 23及更高版本以外的所有api.之后尝试更新他提到的nuget软件包,但从23.0版本升级到25.1.0.这失败了,我得到了这个错误:

With advice from the awnser of the question dev_man metioned I deleted all api's except the api 23 and above. After that is tried to update the nuget packages he mentioned but from version 23.0 to 25.1.0 . This failed and I got this error:

     Severity   Code    Description Project File    Line    Suppression State
    ErrorCould not install package 'Xamarin.Android.Support.Design 25.1.0'. 
You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework.
 For more information, contact the package author.

推荐答案

好几个问题可能导致这个问题浮出水面,可惜的是,核心问题在最初阶段似乎并不明显. 如果您仔细阅读了该解决方案,则上一个问题涵盖了广泛的可能原因.当您按照各个步骤操作时,您的错误可能会更改. 单击此处

Well there are a number of problems that can lead to the surfacing of this issue and sadly the core issue doesnt seem visible at the initial stage. This previous question covers a wide range of the possible causes if one reads thoroughly the solution may be found. your error might change as you follow the various steps. click here

这篇关于警告:跨平台Xamarin空白应用程序(Xamarin.Form便携式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆