在链接 react-native-camera 之后,我整天都在尝试构建我的项目。我认为问题出在依赖项和 google-play-service 但我不确定。
我尝试了许多其他配置,即使构建错误不同,我也无法构建......
我遇到的最后一个错误是:
Android 依赖 'com.google.android.gms:play-services-base' 的编译 (11.8.0) 和运行时 (12.0.1) 类路径有不同的版本。您应该通过 DependencyResolution 手动设置相同的版本
这些是我得到的依赖项:
dependencies {
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation project(':tipsi-stripe')
implementation "com.facebook.react:react-native:+"
implementation project(':react-native-maps')
implementation project(':react-native-camera')
implementation 'com.google.firebase:firebase-core:10.0.1'
implementation "com.android.support:appcompat-v7:23.0.1"
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
}