Solution:
It performed at thr time I downgrade the support appcompat
gradle dependency, like follwing :
implementation 'com.android.support:appcompat-v7:27.0.2'
Formerly it was
implementation 'com.android.support:appcompat-v7:27.1.0'
OR
Further this can be solved by only including support design dependency of version 27.1.0 or above to your app level build.gradle
as following :
implementation 'com.android.support:design:27.1.0'
I faced the similar issue, I included android support design dependencies to the app level build.gradle
Include following:
implementation 'com.android.support:design:27.1.0'
in build.gradle. Now its performing for me.
It might be reason of a library, I faced it cause of Glide.
It was
implementation 'com.github.bumptech.glide:glide:4.7.1'
So I included exclude group: "com.android.support"
And it becomes
implementation ('com.github.bumptech.glide:glide:4.7.1') {
exclude group: "com.android.support"
}
Ensure that these two are the same version in your app level build.gradle file
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
Personally, I include the following line to my app/build.gradle:
implementation "com.android.support:design:${rootProject.ext.supportLibVersion}"
I am employing android studio 3.0 and i upgrade the design pattern dependency from 26.0.1 to 27.1.1 and the error is gone now.
include Following in gradle implementation 'com.android.support:design:27.1.1'
Employ
implementation 'com.android.support:appcompat-v7:27.1.1'
Don't usage like
implementation 'com.android.support:appcompat-v7:27.+'
It may give you an error and don't usage an older version than this.
or event don't do
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
numbers of libraries and then
implementation 'com.android.support:appcompat-v7:27.+'
the similar library however it has a different version, it can give you an error.