1. Don't enable anonymous usage data collection
    2. Accept the agreement
    3. Account name: Gmail
    4. Your name: John Smith
    5. Email address: xxxx@gmail.com
    6. Account type: IMAP
    7. IMAP server: imap.gmail.com
    8. Use Secure connection: SSL
    9. port: 993
    10. Username: xxxx
    11. Password: ****
    12. SMTP server: smtp.gmail.com
    13. Use Secure connection: TLS
    14. port: 587
    15. Authentication: PLAIN
    16. Username password same as before
    17. Refresh on startup: headers
    18. Refresh frequency: 5 minutes
    19. Auto startup: Yes
    20. Show notification icon on homescreen: Yes
    21. Use Default setting: No
    22. Wifi only: Yes
    23. Test configuration: Click it
    24. Should see Connection successful for IMAP and SMTP
    25. Click any mailbox and the program will exit: this is normal
    26. Reopen the app and you should see your inbox

If you are still having difficulty, please check you have Logicmail removed from phone,

sometimes these two apps have conflicts.