0

我将我的谷歌服务从 3.2.1 更新到 3.3.0 并开始收到以下错误

执行

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'
        classpath "com.google.gms:google-services:3.3.0" // <- Update
    }
}

错误

More than one variant of project :asq-react-native-facebook-log-in matches the consumer attributes:
  - Configuration ':asq-react-native-facebook-log-in:debugApiElements' variant android-aidl:
      - Found artifactType 'android-aidl' but wasn't required.
      - Required com.android.build.api.attributes.BuildTypeAttr 'debug' and found compatible value 'debug'.
      - Found com.android.build.api.attributes.VariantAttr 'debug' but wasn't required.
      - Required com.android.build.gradle.internal.dependency.AndroidTypeAttr 'Aar' and found compatible value 'Aar'.
      - Required default 'development' but no value provided.
      - Required org.gradle.usage 'java-api' and found compatible value 'java-api'.

这个错误发生在我的主项目中,但是错误本身是指这个项目https://github.com/Asimetriq/asq-react-native-facebook-log-in/tree/master/android(这是其中之一我的主项目中的依赖项)

错误的那- Configuration一点重复了好几次(相同的内容,为了保持整洁,这里没有包含它。)

4

1 回答 1

5

根据这个答案,有一个已知的错误Google services 3.3.0

使用4.0.1修复错误的版本或降级到3.2.1

于 2018-05-28T16:05:26.617 回答