The same thing happened to me, just follow instructions from Sendil R
On your device, go to:
Settings → Storage → ⋮ → USB-connection to computer → MTP media device
Don't miss the step to click the 3 dots in top right corner. Unplug and replug device.