在 Xamarin.Android.Support.Design 25.4.0.1 中找不到 BottomSheetDialogFragment

Can not find BottomSheetDialogFragment in Xamarin.Android.Support.Design 25.4.0.1

我刚刚将 Xamarin Android 项目中的所有支持库从 25.3.1 升级到 25.4.0.1。由于一个自定义对话框子类化 BottomSheetDialogFragment,我的项目现在无法编译(升级前一切都已编译并运行良好)。 Visual Studio 将其标记为红色并表示找不到 ("The type or namespace BottomSheetDialogFragment could not be found")。

在对象浏览器中,我在 Xamarin.Android.Support.Design 库中也找不到 BottomSheetDialogFragment

如果我将我的自定义对话框更改为子类 AppCompatDialogFragment 而不是一切都编译并且工作正常(除了对话框现在缺少底部 Sheet 行为)。

有没有人遇到过类似的问题?你知道 BottomSheetDialogFragment 在哪里了吗?

更新:

Xamarin 已发布版本 25.4.0.2,该版本修正了问题:

<package id="Xamarin.Android.Support.Design" version="25.4.0.2" targetFramework="monoandroid71" />

原文:

Xamarin.Android.Support.Design v25.4.0.1 的那个版本(和其他版本?)刚刚坏了...除了 BottomSheetDialogFragmentCheckableImageButtonAnimationUtilsValueAnimatorCompat 等都丢失了(有 超过 50 public class丢失的)。

奇怪的是正确的 .jar 被嵌入为那些 classes 并且从 Google 的 Maven 中提取这些库在 AS 中工作正常:

dependencies {
   ~~~
   compile 'com.android.support:design:25.4.0'
   ~~~
}

BottomSheetDialogFragment class 存在于从 Xamarin.Android.Support.Design:

中提取的 classes.jar
strings __library_projects__/Xamarin.Android.Support.Design/library_project_imports/bin/classes.jar|grep -R BottomSheetDialogFragment
(standard input):android/support/design/widget/BottomSheetDialogFragment.classUT
(standard input):android/support/design/widget/BottomSheetDialogFragment.classUT

我们正在为 Android Oreo 构建我们自己的 Xamarin AndroidSupportComponents with custom bindings in order to get the latest and greatest as we are already using 26.0.1

应该将其报告为错误 @ https://bugzilla.xamarin.com