I'm trying to add TextInputLayout for Android Material Design Floating Labels for EditText.
I have added implementation 'com.android.support:design:28.0.0' which shows to add *
noinspection GradleCompatible
My build.gradle as below
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.writeproctor"
minSdkVersion 21
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
//noinspection GradleCompatible
implementation 'com.android.support:design:28.0.0'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.13'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
I have suppressed the warning but still not able add TextInputLayout.
How can i add TextInputLayout in this latest android studio 3.5.3?