Android Firebase createUserWithEmailAndPassword方法未输入

Android Firebase createUserWithEmailAndPassword方法未输入,android,firebase,firebase-authentication,createuser,Android,Firebase,Firebase Authentication,Createuser,我的android程序Firebase登录注册屏幕的createUserWithEmailAndPassword方法不起作用 public void btnUserkayit_Click(View view) { final ProgressDialog progressDialog = ProgressDialog.show(RegisterActivity.this, "Lütfen Bekleyiniz...", "Kayıt yapılıyor...", true); (

我的android程序Firebase登录注册屏幕的createUserWithEmailAndPassword方法不起作用

public void btnUserkayit_Click(View view) {
    final ProgressDialog progressDialog = ProgressDialog.show(RegisterActivity.this, "Lütfen Bekleyiniz...", "Kayıt yapılıyor...", true);
    (firebaseAuth.createUserWithEmailAndPassword(txtEmail.getText().toString(), txtPass.getText().toString()))
            .addOnCompleteListener(RegisterActivity.this,new OnCompleteListener<AuthResult>() {
                @Override
                public void onComplete(@NonNull Task<AuthResult> task) {
                    progressDialog.dismiss();
                    if (task.isSuccessful()) {
                        Toast.makeText(RegisterActivity.this, "Kaydınız oluşturulmuştur", Toast.LENGTH_LONG).show();
                        Intent i = new Intent(RegisterActivity.this, LoginActivity.class);
                        startActivity(i);
                    } else {
                        Log.e("ERROR",task.getException().toString());
                        Toast.makeText(RegisterActivity.this, task.getException().getMessage(), Toast.LENGTH_LONG).show();
                    }
                }

            });
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
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:24.2.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
testCompile 'junit:junit:4.12'
}


}

日志中没有任何内容?是否使用6个字符以上的密码?您是否在firebase控制台中激活了电子邮件密码登录?是?激活电子邮件密码登录。我解决了这个问题,但发现了一个新问题,代码运行一个真正的电话没有问题,但不是启动一个虚拟电话这是关于谷歌Play服务的,它需要是11.0.1或更高版本
dependencies {
    classpath 'com.android.tools.build:gradle:2.2.2'
    classpath 'com.google.gms:google-services:3.1.0'        // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}