react-native-android - 任务“: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 但如果有人有任何解决方案,请更新我
解决方案
我也遇到过这个问题,当我将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()
}
}
推荐阅读
- sql - How to calculate time difference between rows
- java - 如何计算饼图中显示的日期与当前日期之间的差异
- rust - 为什么我不能通过`use`导入`std :: assert`,而它适用于std中的其他宏?
- javascript - 如何计算圆形路径上的点?(中心已知)
- javascript - 将 Javascript 变量值发送到电子邮件
- angular - Handsontable numbro 库中的错误,仅在生产版本中发生
- scala - 需要帮助以了解我测试功能的方式是否正确
- java - 如何修复 Android Studio 上的 java.lang.RuntimeException?
- javascript - 通过android(webview)访问javascript变量
- linux - Python Flask 服务文件未启动