[英]Could not resolve project :react-native-maps
I'm getting this error when trying build.gradle:尝试 build.gradle 时出现此错误:
**Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'. **无法确定任务“:app:compileDebugJavaWithJavac”的依赖关系。
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
无法解析配置“:app:debugCompileClasspath”的所有任务依赖性。 Could not resolve project:react-native-maps.
无法解析项目:react-native-maps。 Required by: project:app > No matching configuration of project:react-native-maps was found.
Required by: project:app > 未找到 project:react-native-maps 的匹配配置。 The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.2.1' but: - None of the consumable configurations have attributes.**
消费者被配置为查找组件的 API,最好针对 Android 进行优化,以及属性“com.android.build.api.attributes.BuildTypeAttr”,值为“debug”,属性“com.88246184094138.build28.8481” attributes.AgpVersionAttr' 值为 '7.2.1' 但: - 消耗品配置均没有属性。**
Knowing that I have added this in build.gradle:app:知道我在 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'```
Go to your settings.gradle file and remove all lines referencing react-native-maps (refer to conversation in link) https://github.com/react-native-maps/react-native-maps/issues/4224 Go 到您的 settings.gradle 文件并删除所有引用 react-native-maps 的行(参考链接中的对话) https://github.com/react-native-maps/react-native-maps/issues/4224
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.