Unable to import FirebaseAuth

I tried to declare a class of FirebaseAuth.

The assistant of Firebase in Android Studio is giving me:

  1. Connect your app to Firebase -> connected
  2. Add Firebase Authentication to your app -> Dependencies set up coorectly

When I declare an instance of FirebaseAuth:

import FirebaseAuth

It causes error in this line. I try to clean and rebuild the project, nothing changes.

Import firebaseauth is for ios code, for android use

import com.google.firebase.auth.FirebaseAuth

Or move your cursor to word that has red underline until it show bulb, left click on it and choose import menu, it will automatically import the package for you.