When using 2 step verification and you want to add your account to a service or device, you have to create a app specific password.

1.Go to: https://myaccount.google.com/apppasswords

2. Select App and Device, click Generate

3. System will generate an application specific password.

4. Insert the given password to the service or device.