Java 错误:未能解析:android.support:support.v7:29.0.2

Java 错误:未能解析:android.support:support.v7:29.0.2,java,android,android-studio,Java,Android,Android Studio,我是Android studio的新手。我面临着编码部分的问题。运行代码时,它显示一个错误。 梯度部分如下所示 apply plugin: 'com.android.application' android { compileSdkVersion 29 buildToolsVersion "29.0.2" defaultConfig { applicationId "com.example.fallprediction" minSdkVer

我是Android studio的新手。我面临着编码部分的问题。运行代码时,它显示一个错误。 梯度部分如下所示

apply plugin: 'com.android.application'
android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.fallprediction"
        minSdkVersion 14
        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'
        }
    }
}
dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    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'
    implementation 'android.support:support.v7:29.0.2'
}
错误是 错误:未能解析:android.support:support.v7:29.0.2 在“项目结构”对话框中显示 受影响模块:应用程序


请帮助我解决此错误

将其转换为androidx或删除此依赖项实现的android。支持:支持。v7:29.0.2