ConstraintLayout InflateException:<Can't convert value at index..> & <For input string..>

ConstraintLayout InflateException: <Can't convert value at index..> & <For input string..>

使用 ConstraintLayout 并设置所有四个 layout_constraint.. 会引发以下未处理的异常:

Android.Views.InflateException: Binary XML file line #1: Can't convert value at index 19 to dimension: type=0x10

并且通过删除底部约束并在 LinearLayout 中设置任何比率,这次抛出此未处理的异常:

Android.Views.InflateException: Binary XML file line #1: For input string: "H,16:9"

<android.support.constraint.ConstraintLayout 
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
  <LinearLayout
      android:orientation="vertical"
      android:layout_width="0dp"
      android:layout_height="0dp"
      android:layout_marginStart="16dp"
      android:layout_marginTop="32dp"
      android:layout_marginEnd="16dp"
      android:layout_marginBottom="32dp"
      app:layout_constraintLeft_toLeftOf="parent"
      app:layout_constraintTop_toTopOf="parent"
      app:layout_constraintRight_toRightOf="parent"
      app:layout_constraintBottom_toBottomOf="parent"
      app:layout_constraintDimensionRatio="H,16:9">

完全相同的 xml 在 Android Studio 中有效,但在 Xamarin 中无效。这是一个错误还是我遗漏了什么?

注意:我使用的是 Xamarin.Android.Support.Constraint.Layout 包版本 1.0.2.2,这是最新的稳定版本。

请删除 bin/obj 文件夹,然后重建。有时VS编译器会出错