【问题标题】:Cannot access AutoSizeableTextView public class ButtonRenderer无法访问 AutoSizeableTextView 公共类 ButtonRenderer
【发布时间】:2019-03-04 07:57:57
【问题描述】:

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,但问题并没有消失!

【问题讨论】:

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


    【解决方案1】:

    原来我安装了 Intersoft Solutions 的 Crosslight.Xamarin.GooglePlayServices.Base 包,被包名误导了,当我试图下载微软的包时,我删除了它并现在项目正常运行了

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-11
      • 1970-01-01
      • 2022-10-24
      • 1970-01-01
      • 2016-02-13
      • 2018-07-29
      • 2013-06-22
      • 2012-10-06
      相关资源
      最近更新 更多