質問: I tried to display the code in android studio and got this error: Exception raised during rendering: Circular dependencies cannot exist in RelativeLayout. I tried changing the code in many spots but nothing seemed to help..... In the layout i was trying to make a line of text boxes and two parallel lines of TextView. I would like to keep this design so that it stays that way. so if someone has an answer that keeps it in place and fixes the problem i would be very great-full if he posted it. this is my code: *``` ```* Thanks a lot for helping:)
回答: Your Views are referring to each other in a bidirectional way, which causes the circular dependency that you should not have. For example: textView5's position in the layout is based on textView6's position, but textView6's position is also based on textView5's position. This dependency should be only one-way.