java - 错误: Failed to resolve: android.支持:support. v7 :29. 0.2

标签 java android android-studio

我是 Android Studio 的新手。我在编码部分遇到问题。运行代码时显示错误。 Thw gradle部分如下所示

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.support:support.v7:29.0.2

关于java - 错误: Failed to resolve: android.支持:support. v7 :29. 0.2,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60248498/

相关文章:

java - IntelliJ 14.1.4 中未导入 Maven 依赖项

android - Activity 识别继续在奥利奥服务

android - Android Studio 安装过程中无法安装 HAXM

android - Artifact : ResolvedArtifact 的空提取文件夹

Android Studio 偶尔无法启动

Java 正则表达式输出

java - android studio 媒体播放器 null 对象引用

java - 当我在springboot API上使用@OneToMany和@ManyToOne时出现错误消息

android - android中的Flutter启动屏幕从黑色标题栏过渡到白色

android - Android 中 Activity 之间的 3D 动画