Androidx ConstraintLayout不允许移动其子项或编辑其约束
我正在使用新的androidx库,并且Androidx ConstraintLayout不允许移动其子项或编辑其约束,android,android-constraintlayout,androidx,Android,Android Constraintlayout,Androidx,我正在使用新的androidx库,并且androidx.constraintlayout.constraintlayout组件不允许在调色板中拖动其子项,并且不显示编辑其子项约束的能力 以下是XML: <?xml version="1.0" encoding="utf-8"?> <androidx.constraintlayout.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/and
androidx.constraintlayout.constraintlayout
组件不允许在调色板中拖动其子项,并且不显示编辑其子项约束的能力
以下是XML:
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".AddNewPlayer">
<com.google.android.material.textfield.TextInputEditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/player_name_field"
android:hint="Player Name" />
</androidx.constraintlayout.ConstraintLayout>
还有其他人有这个问题吗?如何解决此问题?我的reddit问题由ConstraintLayout团队中的某个人回答-显然,库的1.1.1版本存在问题,使用1.1.0解决了此问题
来源:我通过清理项目并使缓存无效、重新启动解决了这个问题
implementation 'androidx.constraintlayout:constraintlayout:1.1.1'
implementation 'com.google.android.material:material:1.0.0-alpha3'