gpt4 book ai didi

Android Firebase 身份验证

转载 作者:行者123 更新时间:2023-11-30 00:23:35 25 4
gpt4 key购买 nike

 mAuth!!.createUserWithEmailAndPassword(email,password)
.addOnCompleteListener(this){ task ->

if (task.isSuccessful){
Toast.makeText(applicationContext,"Successful login",Toast.LENGTH_LONG).show()

var currentUser =mAuth!!.currentUser
//save in database
if(currentUser!=null) {
myRef.child("Users").child(SplitString(currentUser.email.toString())).child("Request").setValue(currentUser.uid)
}

LoadMain()

}else
{
Toast.makeText(applicationContext,"fail login",Toast.LENGTH_LONG).show()
}

}

我收到“包 'com.example.package' 的开发人员警告无法在 channel 'null' 上发布通知,请参阅日志了解更多详细信息”

在日志中

    DynamiteModule: Local module descriptor class for com.google.firebase.auth not found.
GooglePlayServicesUtil: Google Play services out of date. Requires 11020000 but found 10932470
Notification: Use of stream types is deprecated for operations other than volume control
Notification: See the documentation of setSound() for what to use instead with android.media.AudioAttributes to qualify your playback use case

我有

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
implementation 'com.google.firebase:firebase-core:11.2.0'
compile 'com.google.firebase:firebase-auth:11.2.0'
compile 'com.google.firebase:firebase-database:11.2.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.0'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.0'

在 build.gradle 中

我一直在看这个 https://developer.android.com/guide/topics/ui/notifiers/notifications.html#ManageChannels , 但我不知道如何解决这个问题

最佳答案

您的播放服务版本太旧。在 gradle 中使用最新的 google play 服务:

dependencies {
compile 'com.google.android.gms:play-services:11.2.0'
}

关于Android Firebase 身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45830586/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com