title: What causes Circular dependencies cannot exist in RelativeLayout in Android?
body: <p><strong>Hi</strong></p>
  
  <p>I got this error in my layout, looks like there is no problems, but this appears when trying to open the layout in Test device:</p>
  
  <pre><code>java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout
  at android.widget.RelativeLayout$DependencyGraph.getSortedViews(RelativeLayout.java:1704)
  at android.widget.RelativeLayout.sortChildren(RelativeLayout.java:382)
  at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:390)
  at android.view.View.measure(View.java:17951)
  at android.widget.ScrollView.measureChildWithMargins(ScrollView.java:1269)
  at android.widget.FrameLayout.onMeasure(FrameLayout.java:436)
  at android.widget.ScrollView.onMeasure(ScrollView.java:338)
  at android.view.View.measure(View.java:17951) .......
  </code></pre>
  
  <p><strong>Here is my XML: <a href="https://drive.google.com/file/d/0B-L9-45kg_JCS3N3Wk40MzBLVmc/view?usp=sharing" rel="nofollow">Click here</a></strong></p>
  
  <p>What causes the "<code>Circular dependencies cannot exist in RelativeLayout</code>"-problem?</p>