While I was working in motion layout. I got an error saying

Attempt to invoke virtual method 'int androidx.constraintlayout.motion.widget.MotionScene$Transition.getStartConstraintSetId()' on a null object reference

 Attempt to invoke virtual method 'int androidx.constraintlayout.motion.widget.MotionScene$Transition.getStartConstraintSetId()' on a null object reference

1

There are 1 answers

0
Aditya Cheke On

In the MotionScene I was not writing the spelling of Transition properly. As you can see in line number 107 i was writing Transitionr instead of Transition.