无法实施 androidx.appcompat.appcompat:1.0.0

UNable to implement androidx.appcompat.appcompat:1.0.0

我是 Android 开发和尝试构建测试自动化以测试移动应用程序的绝对初学者。经过数周的 IntelliJ 设置后,我仍然面临问题,其中包括以下问题。

由于我使用的是 SDK ver 29,我被告知我应该将所有 "support" 关键字转换为 androidx 的格式,如下所示:

所以,当我应用它时,我在“1.0.0”的末尾有一条指示错误的红色波浪线,如下所示

以下是我的app/build.gradle

android {
    compileSdkVersion 29
    buildToolsVersion "29.0.1"
    defaultConfig {
        applicationId "com.example.test"
        minSdkVersion 15
        targetSdkVersion 29
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {

    implementation fileTree(dir: 'libs', include: ['*.jar'])
    //noinspection GradleCompatible
    //implementation 'com.android.support:appcompat-v7:29+'
    implementation androidx.appcompat.appcompat:1.0.0
    //implementation 'com.android.support.constraint:constraint-layout:1.1.3'
    testImplementation 'junit:junit:4.12'
    implementation 'androidx.annotation:annotation:1.1.0'
    //androidTestImplementation 'com.android.support.test:runner:1.0.2'
    //androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
    //androidTestImplementation 'com.android.support:support-annotations:24.0.0'
    //implementation("com.android.support:support-v4:27.1.1")
    //implementation project(':react-native-fast-image')

}
if(hasProperty('buildScan')){
    buildScan {
        termsOfServiceUrl = 'https://gradle.com/terms-of-service';
        termsOfServiceAgree = 'yes'
    }
}

希望大家指教我哪里做错了

使用

implementation 'androidx.appcompat:appcompat:1.0.0'

而不是

implementation androidx.appcompat:appcompat:1.0.0