2017-08-28 55 views
0
Error:(24, 32) error: cannot find symbol class PhoneAuthCredential 

搖籃電話身份驗證提供了錯誤的Android

compile 'com.google.firebase:firebase-database:10.2.0' 

    compile 'com.google.firebase:firebase-storage:10.2.0' 
    compile 'com.google.firebase:firebase-messaging:10.2.0' 
    compile 'com.google.firebase:firebase-config:10.2.0' 
    compile 'com.firebaseui:firebase-ui-auth:1.2.0' 
    compile 'com.github.bumptech.glide:glide:3.6.1' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.support:design:25.3.1' 
    compile 'com.facebook.android:facebook-android-sdk:4.16.0' 
    compile 'com.google.android.gms:play-services-auth:10.2.0' 
    compile 'com.google.firebase:firebase-auth:10.2.0' 

什麼其他gradle這個文件,包括解決在火力地堡手機驗證這個錯誤嗎?請幫

+0

添加'compile'c​​om.google.firebase:firebase-auth:11.2.0''請參閱此鏈接[FirebasePhoneAuthentication](https://firebase.google.com/docs/auth/android/phone- AUTH) –

回答

1

火力地堡手機認證被支持因爲11.0.0版的firebase sdk

所以你應該使用它的新版本和11.2.0的最新版本吧

compile "com.google.firebase:firebase-auth:11.2.0"