渲染错误,Constraint布局中缺少约束,无法启动更多类。所有错误

时间:2017-07-10 06:19:56

标签: android

所有错误都在我使用最新版本3.0的同时发生但这个错误无法解决我尝试了很多方法

  1. 样式 - >主题

  2. 无效缓存

  3. 更改API,但一切都无法正常工作需要您的帮助.. 在UI中拖动按钮但按钮未在UI上显示,并且出现上述错误。

  4. XML:

    <?xml version="1.0" encoding="utf-8"?>
    <android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:app="http://schemas.android.com/apk/res-auto"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        tools:context="com.example.yousa.myapplication3.MainActivity">
    
        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="Hello World!"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintLeft_toLeftOf="parent"
            app:layout_constraintRight_toRightOf="parent"
            app:layout_constraintTop_toTopOf="parent" />
    
        <Button
            android:id="@+id/button"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/button"
            tools:layout_editor_absoluteX="69dp"
            tools:layout_editor_absoluteY="102dp" />
    
    </android.support.constraint.ConstraintLayout>
    

0 个答案:

没有答案