Constraint layout Issue java.lang.AssertionError: TOP

I was missing the android:orientation="horizontal" / android:orientation="vertical" tag from the GuideLine. Make sure you have added it correctly.

Finally, it should look like this

<androidx.constraintlayout.widget.Guideline
        android:id="@+id/gl_1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        app:layout_constraintBottom_toBottomOf="@id/cv_rank_status"
        app:layout_constraintGuide_percent="0.3"
        app:layout_constraintTop_toTopOf="@id/cv_rank_status" />

Try to remove plus symbol from referencing your guidelines. For example here app:layout_constraintEnd_toStartOf="@+id/gL_image_size_margin"


When you use a vertical guideline, any view constrained to it should do it horizontally and same thing for horizontal guidelines.

In your case, your are constraining view_template_1 vertically to a vertical guideline so change this :

app:layout_constraintBottom_toTopOf="@+id/gL_right_margin"

by a horizontal guideline

Always check your layouts and make sure you add the proper constraint to a guideline.