How to solve the problem?
If connection to the MTP device failed because it is being used by another app at the moment, you’ll be able to detect this in the device’s status:
You can either stop running the conflicting software or disable working with MTP devices in its preferences. Alternatively, you can try mounting the device using ADB.