Branda SMTP not working with GMAIL

Gmail SMTP not working win Branda SMTP. After adding credentials sending test email is failing. Showing error message:
“Failed to send the test email. Please check your SMTP credentials and try again”