Xamarin.Auth Android 项目导致 CustomTab 出现"Cannot find symbol"错误?



我正在尝试在Xamarin.Forms项目中实现Xamarin.Auth库。在我的客户端项目中安装库后,我收到了System.NotImplementedException

System.NotImplementedException: 
Portable Bait And Switch is nuget feature, so the package must be installed in all project. 
NotImplementedException will indicate that Portable Code from PCL is used and not Platform Specific implementation. 
Please check whether platform specific Assembly is properly installed.

因此,我也将库安装在Droid项目中。一旦我这样做,我就开始得到与范围控件相关的"找不到符号"错误:

error: cannot find symbol
extends android.support.customtabs.CustomTabsCallback
symbol:   class CustomTabsCallback
location: package android.support.customtabs    Kpa.Mko.Mobile.Client.Droid
H:...objDebugandroidsrcandroidsupportcustomtabsCustomTabsClient_CustomTabsCallbackImpl.java

总共有6个错误,每个错误都以某种方式与CustomTabs有关。

我们正在使用:

  • Xamarin.auth 1.3.2.5 Xamarin.Forms 2.3.3.193
  • xamarin.android.support.v7.appcompat 25.1.1
  • xamarin.android.support.v7.cardview 25.1.1
  • xamarin.android.support.v7.mediarouter 25.1.1
  • xamarin.android.support.v7.RecyClerview 25.1.1

我在Xamarin论坛上,在堆栈溢出上,当然还有Google进行了一些研究,但我发现的建议没有解决我的问题。我对这里可能发生的事情感到完全困惑。我是否想念明显的?

谢谢!

确保已安装了Xamarin.android.support.customtabs nuget软件包。默认情况下,这不是包含在带有Android Project模板的预包装的Xamarin.android.support软件包中。

nuget软件包调整可能是有问题的。自从添加Xamarin以来,我遇到了许多问题。尝试核定所有bin/and obj/文件夹,如果不更新SDK,然后再次将所有内容核算...

xamarin.auth nuget具有依赖性,它应该吸入其他东西。

从仓库中提取的样品:

https://github.com/moljac/xamarin.auth.samples.nugetreferences

相关内容

最新更新