[안드로이드 스튜디오] 컨스트레인트 레이아웃 설정 오류
문제
Missing Constraints in ConstraintLayout
This view is not constrained.
It only has designtime positions, so it will jump to (0,0) at runtime unless you add the constraints
The layout editor allows you to place widgets anywhere on the canvas, and it records the current position with designtime attributes (such as layout_editor_absoluteX).
These attributes are not applied at runtime, so if you push your layout on a device, the widgets may appear in a different location than shown in the editor.
To fix this, make sure a widget has both horizontal and vertical constraints by dragging from the edge connections.
Issue id: MissingConstraints
Vendor: Android Open Source Project Contact: https://groups.google.com/g/lint-dev
Feedback: https://issuetracker.google.com/issues/new?component=192708
해결 방법
참고
Android : missing constraints in constraintlayout 해결방법
안드로이드 프로젝트에서 res > layout > activity_main.xml로 들어가면 메인화면을 디자인할 수 있는 창이 뜹니다. 테스트를 하기 위해 해당 창에 버튼 하나를 추가해보았습니다. 근데 바로 오류가 나는
milkoon1.tistory.com
반응형