I was working on an Android Studio application when I ran into this error.
Process: com.example.visualizercopy, PID: 28098 java.lang.RuntimeException
I figured it out, I had to update the android.support.constraint.ConstraintLayout tags to androidx.constraintlayout.widget.ConstraintLayout in my layout XML.
android.support.constraint.ConstraintLayout
androidx.constraintlayout.widget.ConstraintLayout