首页 > 解决方案 > React-Native,依赖项。从谷歌登录

问题描述

我无法运行应用程序。我收到一条消息,指出存在重复的类/依赖项。

错误:

第一部分

和下一部分

第二部分

构建.gradle:

buildscript {
ext {
    buildToolsVersion = "28.0.3"
    minSdkVersion = 16
    compileSdkVersion = 28
    targetSdkVersion = 28
    googlePlayServicesAuthVersion = "15.0.1"
}
repositories {
    google()
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:3.5.2'
    classpath 'com.google.gms:google-services:3.2.1'
}
}

应用程序/build.gradle

dependencies {
 implementation fileTree(dir: "libs", include: ["*.jar"])
 implementation "com.android.support:appcompat-v7:23.0.1"
 implementation "com.facebook.react:react-native:+"
 implementation(project(":react-native-google-signin"))
 ...
 }
apply plugin: 'com.google.gms.google-services'

标签: react-native

解决方案


推荐阅读