我已安装并链接tipi-stripe以获得react-native,当我想启动我的android模拟器时出现此错误: “类型已存在:com.google.android.gms.internal.zzdkw”
我遵循了安装文档,并且所有内容都链接良好。
如一些讨论所述,我还升级了我的Firebase依赖项
这是我的app / build.gradle:
dependencies {
compile project(':tipsi-stripe')
compile project(':react-native-pdf')
compile project(':react-native-camera')
implementation project(':react-native-push-notification')
implementation project(':react-native-image-picker')
implementation project(':rn-fetch-blob')
implementation project(':react-native-vector-icons')
implementation project(':react-native-maps')
implementation project(':react-native-firebase')
implementation project(':react-native-document-picker')
implementation "com.google.android.gms:play-services-base:16.0.1"
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation "com.google.firebase:firebase-messaging:17.3.4"
implementation 'me.leolin:ShortcutBadger:1.1.21@aar'
implementation "com.google.firebase:firebase-database:16.0.5"
implementation "com.google.firebase:firebase-storage:16.0.5"
implementation "com.google.firebase:firebase-auth:16.1.0"
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.android.support:appcompat-
v7:${rootProject.ext.supportLibVersion}"
implementation "com.facebook.react:react-native:+" // From
node_modules
}
task copyDownloadableDepsToLibs(type: Copy) {
from configurations.compile
into 'libs'
}
apply plugin: 'com.google.gms.google-services'
com.google.gms.googleservices.GoogleServicesPlugin.config.
disableVersionCheck = true
我的buil.gradle:
buildscript {
repositories {
google()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.1'
classpath 'com.google.gms:google-services:4.1.0'
}
}
subprojects {
afterEvaluate {project ->
if (project.hasProperty("android")) {
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
}
}
}
}
allprojects {
repositories {
mavenLocal()
google()
jcenter()
maven { url "https://jitpack.io" }
maven {
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
}
ext {
//googlePlayServicesVersion = "16.0.1"
// firebaseVersion = "+" // default: "+"
buildToolsVersion = "27.0.4"
minSdkVersion = 16
compileSdkVersion = 27
targetSdkVersion = 26
supportLibVersion = "27.1.1"
}
task wrapper(type: Wrapper) {
gradleVersion = '4.4'
distributionUrl = distributionUrl.replace("bin", "all")
}
有什么想法或其他方式来实现本机的条纹?