Android ConstraintLayout InflateException:&

Android ConstraintLayout InflateException:&,android,xamarin,xamarin.android,android-constraintlayout,Android,Xamarin,Xamarin.android,Android Constraintlayout,使用ConstraintLayout并设置所有四个布局约束。。引发以下未处理的异常: Android.Views.InflateException:二进制XML文件第1行:无法将索引19处的值转换为维度:type=0x10 通过移除底部约束并在LinearLayout中设置任何比率,这次将抛出此未处理的异常: Android.Views.InflateException:二进制XML文件第1行:输入字符串:H,16:9 同样的xml在Android Studio中工作,但在Xamarin中不起作

使用ConstraintLayout并设置所有四个布局约束。。引发以下未处理的异常:

Android.Views.InflateException:二进制XML文件第1行:无法将索引19处的值转换为维度:type=0x10

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

Android.Views.InflateException:二进制XML文件第1行:输入字符串:H,16:9

同样的xml在Android Studio中工作,但在Xamarin中不起作用。这是一个错误还是我遗漏了什么


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

请删除bin/obj文件夹,然后重新生成。有时VS编译器会犯一些错误。

这不是一个bug,它在我这边起作用。尝试清理、重建。或者删除bin/obj,重新启动VS.@JoeLv MSFT-Hmm!移除bin和obj确实有效。白白浪费了4天的挖掘时间。@JoeLv MSFT哦,是的,拜托。
<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">