【问题标题】:Compilation failed to complete编译未能完成
【发布时间】:2018-09-15 11:55:59
【问题描述】:

https://github.com/Xares01/TimeZoneWorld

它在构建中说:

Android issues: Program type already 
present: com.google.android.gms.auth.api.signin.internal.zzo    

在我尝试使用 build.gradle 应用程序文件之前,因为它抱怨不同的版本,这是我不应该做的。

这是我当前的 build.gradle 文件:

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.example.jimjohansson.timezoneworld"
        minSdkVersion 16
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner     
        "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),    'proguard-rules.pro'
            }
        }
    }

    dependencies {
      implementation fileTree(dir: 'libs', include: ['*.jar'])
      implementation 'com.android.support:appcompat-v7:27.0.2'
      implementation "com.android.support:cardview-v7:27.0.2"
      implementation ('com.github.bumptech.glide:glide:4.5.0',{
          exclude group: 'com.android.support'
      })
      implementation 'com.android.support.constraint:constraint-layout:1.0.2'
      testImplementation 'junit:junit:4.12'
      androidTestImplementation 'com.android.support.test:runner:1.0.1'
      androidTestImplementation 'com.android.support.test.espresso:espresso-   core:3.0.1'
      implementation 'com.firebaseui:firebase-ui-auth:3.2.2'
      implementation 'com.google.firebase:firebase-auth:12.0.1'
      implementation 'com.google.android.gms:play-services-drive:12.0.1'
      implementation 'com.android.support:support-v4:27.0.0'
    }

    apply plugin: 'com.google.gms.google-services'

【问题讨论】:

  • 添加你的错误日志
  • @NikunjParadva 我在日志中看到很多错误。我怎样才能缩短它?而且它越来越多。时间是 16:24,最高我在 18:05 重新启动。
  • @XaresJ 你试过答案了吗?
  • @PeterHaddad 是的,我试过你的答案,它奏效了。谢谢!不幸的是,我不能赞成你的评论:/因为我还没有代表 15。

标签: android firebase compiler-errors firebase-authentication firebaseui


【解决方案1】:

改变这个:

implementation 'com.firebaseui:firebase-ui-auth:3.2.2'

到这里:

implementation 'com.firebaseui:firebase-ui-auth:3.3.0'

firebaseui应该与firebase版本兼容

参考这个:

https://github.com/firebase/FirebaseUI-Android#dependencies

【讨论】:

    猜你喜欢
    • 2018-10-13
    • 2020-09-17
    • 1970-01-01
    • 1970-01-01
    • 2013-09-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多