得到“错误:ConstraintLayout中缺少约束". [英] Getting "Error: Missing Constraints in ConstraintLayout"
本文介绍了得到“错误:ConstraintLayout中缺少约束".的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Android Studio 3.0.1.每当我在活动屏幕"上拖动按钮或进行其他任何活动时,都会出现以下错误
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
ConstraintLayout中缺少约束"
Missing Constraints in ConstraintLayout"
我需要针对此问题的永久修复.请帮我.
I need a permanent fix for this issue. Please help me.
推荐答案
在设计上方的面板中,您会看到一个棒型工具,当您将鼠标悬停在其上时,它将显示推断约束,只需单击它,然后您的问题将得到解决
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
这篇关于得到“错误:ConstraintLayout中缺少约束".的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文