0
選項選定區域中的mFirebaseAuth.signOut();
中無法訪問聲明錯誤。Firebase錯誤android無法訪問聲明
public boolean onOptionsItemSelected(MenuItem item) {
return super.onOptionsItemSelected(item);
switch (item.getItemId()) {
case R.id.sign_out_menu:
mFirebaseAuth.signOut();
Auth.GoogleSignInApi.signOut(mGoogleApiClient);
mUsername = ANONYMOUS;
startActivity(new Intent(this, SignInActivity.class));
return true;
default:
return super.onOptionsItemSelected(item);
}
}
刪除返回super.onOptionsItemSelected(項目);在第二行上解決。 –