0

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

Aditya Cheke
  • 53
  • 2
  • 4
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 05 '22 at 19:58
  • @Community Here we don't have much code. If you compare line number 107 and 102 you can see the difference. I wrote Transition to Transitionr due to this am getting this error. – Aditya Cheke Aug 07 '22 at 04:21

1 Answers1

0

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.

Aditya Cheke
  • 53
  • 2
  • 4