环境:Android Studio 3.1.1 代码:
import com.firebase.ui.auth.AuthUI;
...
private void startSignIn()
{
// Sign in with FirebaseUI
Intent intent = AuthUI.getInstance()
.createSignInIntentBuilder()
.setIsSmartLockEnabled(false)
.setAvailableProviders(Arrays.asList(
new AuthUI.IdpConfig.EmailBuilder().build(),
new AuthUI.IdpConfig.GoogleBuilder().build()
))
.build();
startActivityForResult(intent, RC_SIGN_IN);
mViewModel.setIsSigningIn(true);
}
在Firebase的身份验证(Authentication)>用户(USERS)中删除我的帐户,并尝试再次使用相同的电子邮件进行注册时,出现了错误。
当我选择使用电子邮件登录并输入电子邮件并点击“下一步”时,应用程序停止运行...
应该创建一个新账户
错误代码:
java.lang.NullPointerException: Attempt to invoke interface method 'void android.view.inputmethod.InputConnection.closeConnection()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.closeConnection(InputConnectionWrapper.java:270)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:541)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:85)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6494)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:807)
有什么想法是出了问题吗?