7

Android Studio cannot find MotionLayout in xml. I use the androidx.constraintlayout.motion.widget.MotionLayout tag and get a gray screen. I’m also implementing 'com.android.support.constraint:constraint-layout:2.0.0-alpha4' and changing to alpha02 changes nothing. I already found a question with the same problem, but it also had no solution.

Zoe
  • 27,060
  • 21
  • 118
  • 148
P1NG2WIN
  • 764
  • 1
  • 9
  • 24

2 Answers2

14

I used the wrong implentation in gradle. Correct is implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'

P1NG2WIN
  • 764
  • 1
  • 9
  • 24
0

after i updated everything is needed ,my problem resolved with clean project in build!

masoud jafari
  • 522
  • 9
  • 14