Open Gmail on your desktop and head over to the settings tab
Select the Forwarding and POP/IMAP tab on the top
Select Enable IMAP and click on Save Changes
not
Enabled. In a situation it is, skip the rest of this step and go to the nextClick on get started