To configure the 'Email' app on an Android device for access to Gmail, just follow the steps below:

  1. Enable IMAP in your Gmail settings.
  2. Open the Email application.
  3. Tap  Menu and the Settings 
  4. In the top corner, tap  select Next to get started with setup.
  5. Enter your full Gmail address and password, then select Next.
  6. On the next screen, you can give the account a nickname and choose the name to display on your outgoing messages. Tap Done.

And you're done. You can verify your settings from the Inbox view by tapping Menu, select Account and then scroll to Server settings.

Incoming settings

IMAP server:

Port: 993

Security type: SSL (always)

Outgoing settings

SMTP server:

Port: 465

Security type: SSL (always)