2017-07-31 19 views
0

我的android应用程序中的电话验证无法正常工作。当我加入AuthUI.PHONE_VERIFICATION_PROVIDER时,编辑显示cannot resolve symbol。其他验证方法,如谷歌或电子邮件工作正常。Firebase中的PHONE_VERIFICATION_PROVIDER AuthUI未配对

这里是屏幕截图此:

enter image description here 这里是摇篮:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 23 
    buildToolsVersion '25.0.2' 
    defaultConfig { 
     applicationId "com.example.nishant.kitchenbook" 
     minSdkVersion 21 
     targetSdkVersion 23 
     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:23.4.0' 
    compile 'com.android.support:support-v4:23.4.0' 
    compile 'com.android.support:design:23.4.0' 
    compile 'com.google.firebase:firebase-database:10.0.1' 
    compile 'com.firebaseui:firebase-ui-auth:1.0.1' 
    compile 'com.android.support.constraint:constraint-layout:1.0.2' 
    testCompile 'junit:junit:4.12' 
} 
apply plugin: 'com.google.gms.google-services' 

回答

1

升级firebaseui版本到最新版本。更改编译'com.firebaseui:firebase-ui-auth:1.0.1'以编译'com.firebaseui:firebase-ui-auth:2.1.1'