尽管从firebase控制台获取并添加依赖项/无法看到firebase电话身份验证

时间:2017-07-28 10:17:17

标签: android firebase firebase-authentication

我已在firebase控制台的“身份验证方法”标签中启用了电话验证功能。将应用程序链接到控制台后,我只看到Android Studio中Firebase助手标签上显示的电子邮件验证。我错过了一步吗?我已经跟踪了googles文档。

console image

Android Studio Image

以下是我的Gradle文件。

Project 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.2'
        classpath 'com.google.gms:google-services:3.0.0'
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

App Gradle

  apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.example.sumeet.kalwardirectorytry1"
        minSdkVersion 21
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

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:25.3.1'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.google.android.gms:play-services-auth:10.0.1'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.intuit.ssp:ssp-android:1.0.4'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.firebase:firebase-auth:10.0.1'
    compile 'com.google.gms:google-services:3.1.0'
    compile 'com.google.firebase:firebase-storage:10.0.1'
    testCompile 'junit:junit:4.12'
}











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

1 个答案:

答案 0 :(得分:0)

手机验证支持11.0.2 lib版本更改你的gradle上的lib版本,你还需要将所有Firebase使用过的lib更新到相同的版本:

compile 'com.google.firebase:firebase-auth:11.0.2'