gpt4 book ai didi

react-native - 任务构建失败:apptransformClasseswithJarMergingForDebug

转载 作者:行者123 更新时间:2023-12-03 05:49:02 26 4
gpt4 key购买 nike

在项目中导入RNFirebase库时,我的构建失败
snap source here

这是我的 Gradle

dependencies {
compile(project(':react-native-firebase')) {
transitive = false
}
compile "com.facebook.react:react-native:+"
compile project(':react-native-google-signin')
compile project(':react-native-fbsdk')
compile fileTree(dir: "libs", include: ["*.jar"])
compile "com.android.support:appcompat-v7:23.0.1"
compile "com.facebook.react:react-native:+" // From node_modules
compile(project(":react-native-google-signin")){
exclude group: "com.google.android.gms" // very important
}
compile "com.google.android.gms:play-services-base:11.6.0"
compile "com.google.firebase:firebase-core:11.6.0"
compile "com.google.firebase:firebase-auth:11.6.0"

}

最佳答案

您要导入react-native-google-signin两次。

删除第一个条目:compile project(':react-native-google-signin')并离开:

compile(project(":react-native-google-signin")){         
exclude group: "com.google.android.gms" // very important
}

关于react-native - 任务构建失败:apptransformClasseswithJarMergingForDebug,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48694235/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com