android - 获取 "Error: Missing Constraints in ConstraintLayout"

标签 android xml android-constraintlayout

我正在使用 Android Studio 3.0.1。每当我在 Activity 屏幕上拖动按钮或进行任何其他 Activity 时,都会出现以下错误

Missing Constraints in ConstraintLayout"

enter image description here

我需要永久修复此问题。请帮我。

最佳答案

在你的设计上方的调色板中,你会看到一个魔杖类型的工具,当你将鼠标悬停在它上面时,它会显示 infer constraint ,只需点击它,你的问题就会得到解决

关于android - 获取 "Error: Missing Constraints in ConstraintLayout",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47778506/

相关文章:

android - Telerik RadSideDrawer 在 Android 4.4 上崩溃

xml - XSLT 处理器如何找到匹配的模板?

regex - xml 架构检查因模式匹配而失败

android - 如何根据设备屏幕尺寸将百分比相对布局中的 ImageView 设置为以下比例,16 :9, 1 :1, 3 :2, 2 :1, 4:3

android - 具有不断增长的 TextView 的 ConstraintLayout 在需要时声明相等的空间

android - 高度为 wrap_content 的 ConstraintLayout 不适用于 ImageView adjustmentViewBounds

Android Webview 以编程方式改变显示网页的方向

java - 用于查找给定距离内所有地理点的Android算法

android - 如何在字符串的末尾和/或开头保留空格?

c# - 带有 DTD 解析错误的 .NET Core Web API XML