我使用BottomSheetBehavior在底部工作表中添加了一个Spinner。设置好适配器并拉起底片后,应用崩溃,并显示以下错误。
java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to android.support.constraint.ConstraintLayout$LayoutParams
at android.support.constraint.ConstraintLayout.getViewWidget(ConstraintLayout.java:1142)
at android.support.constraint.ConstraintHelper.updatePreLayout(ConstraintHelper.java:240)
at android.support.constraint.ConstraintLayout.setChildrenConstraints(ConstraintLayout.java:850)
at android.support.constraint.ConstraintLayout.updateHierarchy(ConstraintLayout.java:794)
at android.support.constraint.ConstraintLayout.onMeasure(ConstraintLayout.java:1542)
at android.view.View.measure(View.java:22071)
底表内的微调框是否存在兼容性问题?