我遇到了这个问题 ->找不到androidx.appcompat:appcompat:26.1.0



我一直在试图解决下面的问题,但找不到任何解决方案。有人有什么办法来解决这个问题吗?

错误信息是

无法确定任务':app:compileDebugJavaWithJavac'的依赖关系。无法解析配置':app:debugCompileClasspath'的所有任务依赖项。无法找到androidx.appcompat:appcompat:26.1.0。在要求:在项目:应用

为构建中需要的工件添加依赖项。你的应用或模块的Gradle文件:

dependencies {
val appcompat_version = "1.3.1"
implementation("androidx.appcompat:appcompat:$appcompat_version")
// For loading and tinting drawables on older versions of the platform
implementation("androidx.appcompat:appcompat-resources:$appcompat_version")
}

我个人将material app从1.7.0降级到1.6:

dependencies {
implementation 'com.google.android.material:material:1.6.1'
}

相关内容

最新更新