I tried to import android.support.design.widget.TabLayout, but I got cannot resolve symbol 'design' error.

In the First I sought that is a problem with a implementation com.android.support:design version (in gradle Module). But it is not. I managed to find the cause of this error - dependencies versions (in gradle Project).
My dependencies version is:
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.google.gms:google-services:4.3.3
'
So if I use older version - this is fixing the error.
classpath 'com.android.tools.build:gradle:3.1.3'
classpath 'com.google.gms:google-services:3.2.1'
I do not understand why It does not work with newest versions. Please help me understand this, why I cannot use new versions.
My android studio vesrion is: 4.0
gradle Module:
android {
compileSdkVersion 29
buildToolsVersion "29.0.3"
defaultConfig {
applicationId "mv.group.qwerty"
minSdkVersion 23
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } }
gradle Project:
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.0.0'
classpath 'com.google.gms:google-services:4.3.3'
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com'
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
classpathinstead of usualimplementation?