【问题标题】:Issues after cloning repo in Xamarin.Forms在 Xamarin.Forms 中克隆 repo 后的问题
【发布时间】:2018-12-11 16:15:50
【问题描述】:

克隆一个 repo 后,我遇到了两个我以前从未见过的错误。

其中之一是“ResolveLibraryProjectImports”任务失败。

Error		The "ResolveLibraryProjectImports" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'AppName, Version=0.0.0.0, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'AppName.dll'
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Java.Interop.Tools.Cecil.DirectoryAssemblyResolver.Resolve(String fullName)
   at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Extract(DirectoryAssemblyResolver res, 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()	AppName.Android			

我试过了:

清理 obj/bin 文件夹 清理 Nuget 缓存 以管理员身份打开 将项目路径更改为更短的路径 更新视觉工作室 更新 Xamarin 库 更新 Android SDK

还有,

我收到一条错误消息,提示找不到 FirebaseUser 类型,但在我的另一台 PC 上它工作得很好,当然包含库,所以即使包含库,它也找不到类型,很奇怪。

Error	CS0246	The type or namespace name 'FirebaseUser' could not be found (are you missing a using directive or an assembly reference?)	Appname C:\Projects\Appname \Appname \Appname \Services\IFirebaseAuthenticator.cs	15	Active

谢谢

【问题讨论】:

    标签: c# visual-studio firebase xamarin xamarin.forms


    【解决方案1】:

    由于不明原因(肯定与您的不同),我偶尔会收到此错误,并通过首先Rebuilding 特别是 PCL 项目,然后Rebuilding 特定于平台的项目来修复它。在解决方案级别重建并不能解决问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-07-14
      • 2013-08-07
      • 2014-02-14
      • 1970-01-01
      • 2019-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多