【问题标题】:Warnings: Cross-plaftorm Xamarin Blank App (Xamarin.Form portable)警告:跨平台 Xamarin 空白应用程序(Xamarin.Forms 可移植)
【发布时间】:2017-02-06 21:29:55
【问题描述】:
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            

我遇到了与one 相同的问题。但是没有解决办法。

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

更新:

根据 dev_man 提到的问题的 awnser 的建议,我删除了除 api 23 及更高版本之外的所有 api。之后尝试更新他提到的 nuget 包,但从版本 23.0 到 25.1.0 。这失败了,我收到了这个错误:

     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.

【问题讨论】:

  • 您能展示一下您的项目中包含哪些参考资料吗?

标签: xamarin xamarin.forms


【解决方案1】:

好吧,有许多问题可能导致这个问题浮出水面,遗憾的是,核心问题在初始阶段似乎并不明显。 如果仔细阅读可能会找到解决方案,则上一个问题涵盖了广泛的可能原因。当您按照各个步骤进行操作时,您的错误可能会发生变化。 click here

【讨论】:

    猜你喜欢
    • 2017-03-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-02-05
    • 1970-01-01
    • 2011-05-31
    • 1970-01-01
    相关资源
    最近更新 更多