java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout

Stack Overflow | PersonalHealth | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    What causes Circular dependencies cannot exist in RelativeLayout in Android?

    Stack Overflow | 8 months ago | PersonalHealth
    java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout

    Root Cause Analysis

    1. java.lang.IllegalStateException

      Circular dependencies cannot exist in RelativeLayout

      at android.widget.RelativeLayout$DependencyGraph.getSortedViews()
    2. Android Platform
      ScrollView.onMeasure
      1. android.widget.RelativeLayout$DependencyGraph.getSortedViews(RelativeLayout.java:1704)
      2. android.widget.RelativeLayout.sortChildren(RelativeLayout.java:382)
      3. android.widget.RelativeLayout.onMeasure(RelativeLayout.java:390)
      4. android.view.View.measure(View.java:17951)
      5. android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1269)
      6. android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
      7. android.widget.ScrollView.onMeasure(ScrollView.java:338)
      7 frames