【发布时间】:2018-02-14 13:03:13
【问题描述】:
运行我正在使用 Firebase 身份验证工具的应用程序时遇到问题。
当我进入流程的“创建帐户”阶段时,我遇到了“错误”,告诉我更新我的 Google Play 服务。
我已尝试通过 project structure > dependencies 手动添加 Google Play 服务,但无济于事 - 问题依旧。
模块:app Gradle 文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.example.XXX.myapplication"
minSdkVersion 15
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(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:27.0.2'
implementation 'com.android.support:design:27.0.2'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.android.support:support-v4:27.0.2'
implementation 'com.google.firebase:firebase-auth:11.8.0'
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'
compile 'com.android.support:recyclerview-v7:27.0.2'
compile 'com.android.support:cardview-v7:27.0.2'
compile 'com.android.volley:volley:1.1.0'
implementation 'com.github.bumptech.glide:glide:4.6.1'
annotationProcessor 'com.github.bumptech.glide:compiler:4.6.1'
compile 'com.google.firebase:firebase-core:11.8.0'
implementation 'com.google.android.gms:play-services:11.8.0'
implementation 'com.android.support:mediarouter-v7:27.0.2'
implementation 'com.google.android.gms:play-services-ads:11.8.0'
}
apply plugin: 'com.google.gms.google-services'
已检查 Stack 中的其他线程,但似乎没有一个可以解决问题。对此的任何帮助将不胜感激!谢谢。
【问题讨论】:
标签: android android-studio firebase firebase-authentication