【发布时间】: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