每当我启动新的Android工作室项目时,都会发生此错误

Sha*_*que 0 android android-layout android-studio

每次当我开始一个新项目时,这个错误发生了请任何人,帮助我......安卓工作室里有什么东西丢失了

在此输入图像描述

content_main.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"
    app:layout_behavior="@string/appbar_scrolling_view_behavior"
    tools:context="com.shareque.myapplication.MainActivity"
    tools:showIn="@layout/app_bar_main">

    <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" />

</android.support.constraint.ConstraintLayout>
Run Code Online (Sandbox Code Playgroud)

信息:Gradle任务[clean,:app:generateDebugSources,:app:mockableAndroidJar,:app:prepareDebugUnitTestDependencies,:app:generateDebugAndroidTestSources] E:\ myapps\BetaApps\Digitalworldapp\app\src\main\res\layout\content_main.xml错误:(15,49)不允许使用字符串类型(在'layout_constraintBottom_toBottomOf'中,值为'parent').错误:(16,75)不允许使用字符串类型(在'layout_constraintLeft_toLeftOf'中,值为'parent').错误:(17,47)不允许使用字符串类型(在'layout_constraintRight_toRightOf'中,值为'parent').错误:(18,43)不允许字符串类型(在'layout_constraintTop_toTopOf',值为'parent').E:\ myapps\BetaApps\Digitalworldapp\app\build\intermediates\res\merged\debug\layout\content_main.xml错误:(15,49)不允许字符串类型(在'layout_constraintBottom_toBottomOf',值为'parent').错误:(16,75)不允许使用字符串类型(在'layout_constraintLeft_toLeftOf'中,值为'parent').错误:(17,47)不允许使用字符串类型(在'layout_constraintRight_toRightOf'中,值为'parent').错误:(18,43)不允许字符串类型(在'layout_constraintTop_toTopOf',值为'parent').错误:任务':app:processDebugResources'的执行失败.

com.android.ide.common.process.ProcessException:无法执行aapt信息:BUILD FAILED信息:总时间:7.672秒信息:9错误信息:0警告信息:在控制台中查看完整输出

Sha*_*que 6

从更改约束布局依赖关系后解决问题

compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha4'
Run Code Online (Sandbox Code Playgroud)

 compile 'com.android.support.constraint:constraint-layout:1.0.1'
Run Code Online (Sandbox Code Playgroud)

在应用程序级Gradle文件中