首页 > 解决方案 > 任务“:app:checkDebugAarMetadata”执行失败。> 无法解析配置 ':app:debugRuntimeClasspath' 的所有文件

问题描述

我正面临这个问题,我尝试了多种解决方案但没有运气我的 build.gradle 文件包含

 compileSdkVersion = 30
 targetSdkVersion = 30 

我还在 build.gradle 中添加了以下几行

 configurations.all {
        resolutionStrategy {
            force 'androidx.core:core-ktx:1.6.0'
        }
    }

另外,尝试这些 https://exerror.com/solved-execution-failed-for-task-appcheckdebugaarmetadata/ 也,安装 node_mudule 很多时间也重置缓存和 Gradle clean 但如果有人有任何解决方案,请更新我

标签: react-native-android

解决方案


我也遇到过这个问题,当我将maven { url "https://jitpack.io"}的位置从下面更改为 up 并添加maven { url "https://maven.google.com"} 然后问题消失。

allprojects {
    repositories {
        mavenLocal()
        maven { url "https://jitpack.io" }
        maven {
            url "https://maven.google.com"
        }
        google()
        jcenter()

    }
}

推荐阅读