Getting “Error: Missing Constraints in ConstraintLayout”

妖精的绣舞 提交于 2019-12-10 02:36:54

问题


I am using Android Studio 3.0.1. Whenever I drag button or do any other activity on my Activity Screen it gives me the following error

Missing Constraints in ConstraintLayout"

I need a permanent fix for this issue. Please help me.


回答1:


See in the pallete just above your design you will see a wand type tool, when you will hover over it it will show infer constraint , just click on it and your problem will be solved




回答2:


Go to the text view in your .xml file hover the cursor to the Error part(Red Underline) and Press (Alt + Enter) it will show you to automatically add the missing things select that and it will be resolved



来源:https://stackoverflow.com/questions/47778506/getting-error-missing-constraints-in-constraintlayout

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!