Hot to fix problem with Mail app to work with Gmail

When  you open Mail app - it exits. The problem in Gmail and you need to do very simple things to solve it