Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/188.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 在包中找不到属性“layout_constraintBottom”的资源标识符_Android_Android Layout_Android Constraintlayout_Android Studio 2.3 - Fatal编程技术网

Android 在包中找不到属性“layout_constraintBottom”的资源标识符

Android 在包中找不到属性“layout_constraintBottom”的资源标识符,android,android-layout,android-constraintlayout,android-studio-2.3,Android,Android Layout,Android Constraintlayout,Android Studio 2.3,我正在尝试在android Studio 2.3.2中构建一个简单的android应用程序,但我在添加到该应用程序的组件中遇到以下错误:在包“com”中找不到属性“layout\u constraintBottom”的资源标识符 我研究了这个问题,发现有些人也有类似的错误。然而,答案是建议在gradle.build文件中添加compile'com.android.support.constraint:constraint layout:1.0.2'。当我看那里的时候,线路已经就位了 以下是我的代

我正在尝试在android Studio 2.3.2中构建一个简单的android应用程序,但我在添加到该应用程序的组件中遇到以下错误:在包“com”中找不到属性“layout\u constraintBottom”的资源标识符

我研究了这个问题,发现有些人也有类似的错误。然而,答案是建议在gradle.build文件中添加compile'com.android.support.constraint:constraint layout:1.0.2'。当我看那里的时候,线路已经就位了

以下是我的代码片段:

<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"
    android:background="@drawable/main_menu"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.example.nmeneses.scorekeeper.MainMenu"
    tools:showIn="@layout/activity_main_menu">

<Button
    android:id="@+id/button3"
    android:layout_width="128dp"
    android:layout_height="79dp"
    android:layout_marginBottom="50dp"
    android:layout_marginLeft="39dp"
    android:layout_marginRight="8dp"
    android:layout_marginTop="8dp"
    android:text="Teams"
    android:textSize="23dp"
    app:layout_constraintBottom="parent"
    app:layout_constraintBottom_toBottomOf="parent"
    app:layout_constraintHorizontal_bias="0.066"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:layout_constraintTop_toTopOf="parent"
    app:layout_constraintVertical_bias="1.0" />

任何帮助都将不胜感激。如果您需要更多信息,请告诉我。

好的,ConstraintLayout中没有属性布局\u constraintBottom。有布局约束Bottom_toTopOf和布局约束Bottom_toBottomOf

我建议您使用以下行:

 app:layout_constraintBottom_toBottomOf="parent"