androidx.constraintlayout.widget.constraintlayout don't have chains that you can drag

I had the same problem until I realized that I should use the Canary version to solve it. after installing Canary version beside stable version, open the project and now you can use this implementation:

implementation 'androidx.constraintlayout:constraintlayout:1.1.2'

instead of

implementation 'com.android.support.constraint:constraint-layout:1.1.2'

Keep in mind that you may need to do the following:

  • clean project
  • rebuild
  • invalidate caches/restart

My problem solved with this method.


if you are using latest Android update 3.3.3 then migrate to Android x from support constraint layout:

<android.support.constraint.ConstraintLayout>
</android.support.constraint.ConstraintLayout>

<androidx.constraintlayout.widget.ConstraintLayout>
</androidx.constraintlayout.widget.ConstraintLayout>

For getting this also change gradle:

com.android.support.constraint:constraint-layout:1.1.3 

to

androidx.constraintlayout:constraintlayout:2.0.0-alpha3