【发布时间】:2017-10-22 05:58:11
【问题描述】:
无法解决:com.google.firebaseui:firebase-ui:3.0.0。我已经包含了所有必要的依赖项。另外,我已经在 firebase 中启用了 Google Button Login。但问题仍然存在.我无法解决 firebaseui 错误。
-
build.gradle(模块:app)
apply plugin: 'com.android.application' android { compileSdkVersion 26 buildToolsVersion "26.0.1" defaultConfig { applicationId "com.example.application.moneyapp" minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } productFlavors { } } dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) compile 'com.android.support:appcompat-v7:26.0.1' compile 'com.android.support:animated-vector-drawable:26.0.1' compile 'com.android.support:mediarouter-v7:26.0.1' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.google.android.gms:play-services:11.4.2' compile 'com.google.android.gms:play-services-auth:11.4.2' compile 'com.google.android.gms:play-services-vision:11.4.2' compile 'com.google.firebaseui:firebase-ui:3.0.0' compile 'com.google.firebase:firebase-auth:11.4.2' compile 'com.google.firebase:firebase-core:11.4.2' compile 'com.google.firebase:firebase-crash:11.4.2' compile 'com.google.firebase:firebase-messaging:11.4.2' compile 'com.google.firebase:firebase-database:10.0.1' testCompile 'junit:junit:4.12' } apply plugin: 'com.google.gms.google-services' -
build.gradle(项目:示例)
// Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { repositories { jcenter() } dependencies { classpath 'com.android.tools.build:gradle:2.3.3' classpath 'com.google.gms:google-services:3.1.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { repositories { jcenter() maven{ url "https://maven.google.com" } } }我收到以下错误。我知道这个问题已经在堆栈溢出中,但它不能解决我的问题。 Messages Gradle Sync is showing this error
在旧的示例答案中,解决方案是在 SDK Manager 中安装 Google Repository 和 Google play Service ..即使将它们安装到最新版本后,我也会遇到相同的错误..请解决我的问题.. 提前致谢:)
【问题讨论】:
-
还是同样的问题:(
-
尝试导入firebase-ui的单个模块
-
清理你的项目并重新同步
-
即使导入单个模块也无法解决问题。
标签: android firebase dependencies