Why am I getting a CircularDependencyException?

后端 未结 3 1368
慢半拍i
慢半拍i 2020-12-19 16:12

Hey I am trying to make a notification for my file uploading notification. This is my XML: but it keeps giving me the error: Circular dependencies cannot exist in RelativeLa

3条回答
  •  旧时难觅i
    2020-12-19 16:28

    Remove the line android:layout_toLeftOf="@+id/right". You are declaring left to be to the left of right, and then right to be to the right of left. Its a circular dependency because it does not know which element to lay out first.

提交回复
热议问题