• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Message "ConstraintLayout is deprecated" in Android Studio 3

MarkP1972

Lurker
Hi,
I try to use the ConstraintLayout and it works so far, as I expected. But I get a hint from Android Studio, that ConstraintLayout is deprecated.

In the SDK-Tools I can see that the version 1.0.2 is installed and this is also registered in the build.gradle-file:
Code:
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

This is the xml-file for the activity, where I get the failure:
Code:
<?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.leichtabnehmen.Tagebuch">

</android.support.constraint.ConstraintLayout>

What is wrong?

Kind regards,
Mark
 
Hi,
I am today not able to reproduce it. I got an update for the API 27, maybe there was something fixed - I don't know.

Kind regards,
Mark
 
Back
Top Bottom