react-native-camera填坑
在项目中引入react-native-camera报错:
Error:Execution failed for task ':react-native-camera:
processReleaseResources'.
Error: more than one library with package name
'com.google.android.gms.license'
解决方法:在项目的build.gradle文件中添加如下代码
def googlePlayServicesVersion = '11.8.0'
allprojects {
configurations.all {
resolutionStrategy {
eachDependency { DependencyResolveDetails details ->
if (requested.group == 'com.google.android.gms') {
details.useVersion "$googlePlayServicesVersion"
}
if (requested.group == 'com.google.firebase') {
details.useVersion "$googlePlayServicesVersion"
}
}
}
}
本文标题:react-native-camera填坑
本文链接:https://www.haomeiwen.com/subject/kruaqftx.html
网友评论