【发布时间】:2023-01-12 04:03:21
【问题描述】:
尝试构建 gradle 时出现此错误:
**无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。
无法解析配置“:app:debugCompileClasspath”的所有任务依赖性。 无法解析项目:react-native-maps。 要求: 项目:应用程序 > 未找到项目的匹配配置:react-native-maps。消费者配置为查找组件的 API,最好针对 Android 进行优化,以及属性“com.android.build.api.attributes.BuildTypeAttr”的值为“debug”,属性“com.android.build.api”。 attributes.AgpVersionAttr' 值为 '7.2.1' 但是: - 消耗品配置都没有属性。**
知道我在 build.gradle:app 中添加了这个:
implementation(project(':react-native-maps')){ exclude group: 'com.google.android.gms', module: 'play-services-base' exclude group: 'com.google.android.gms', module: 'play-services-maps' } implementation 'com.google.android.gms:play-services-base:10.0.1' implementation 'com.google.android.gms:play-services-maps:10.0.1'```
【问题讨论】:
标签: android react-native react-native-maps