无法访问AutoSizeableTextView公共类ButtonRenderer

时间:2019-03-04 07:57:58

标签: xamarin xamarin.forms xamarin.android onesignal applinks

Visual Studio显示以下错误:

error: cannot access AutoSizeableTextView
public class ButtonRenderer
  class file for android.support.v4.widget.AutoSizeableTextView not found - file: \obj\Debug\81\android\src\md5f92e0daf340890c9667469657ee2ece8\ButtonRenderer.java


error: cannot access NestedScrollingChild2
public class ItemsViewRenderer
  class file for android.support.v4.view.NestedScrollingChild2 not found - file: \obj\Debug\81\android\src\md51558244f76c53b6aeda52c8a337f2c37\ItemsViewRenderer.java

error: cannot access NestedScrollingParent2
public class SwipeDismissBehavior_OnDismissListenerImplementor
  class file for android.support.v4.view.NestedScrollingParent2 not found - file: \obj\Debug\81\android\src\mono\android\support\design\widget\SwipeDismissBehavior_OnDismissListenerImplementor.java

error: cannot access TintableImageSourceView
public class ImageButtonRenderer
  class file for android.support.v4.widget.TintableImageSourceView not found - file: \obj\Debug\81\android\src\md51558244f76c53b6aeda52c8a337f2c37\ImageButtonRenderer.java

我安装了一些我认为引起问题的软件包:我安装了OneSignal和AppLinks,这需要安装Xamarin.GooglePlayServices.Base和Xamarin.GooglePlayServices.Basement。然后在特定于Android的软件包之间存在一些冲突,因此我删除了安装到OneSignal的所有软件包。我删除了bin和obj文件夹,清理并生成了项目,然后重新启动了Visual Studio,但是问题并没有消失!

1 个答案:

答案 0 :(得分:0)

原来,我是由Intersoft Solutions安装的软件包 Crosslight.Xamarin.GooglePlayServices.Base ,受软件包名称的误导,而当我尝试由Microsoft下载该软件包时,我将其删除并现在该项目正常工作