Check the USB cable
Before trying complicated resolutions, check your USB cable. Look for bends, cuts, and other damage. You can also try a different cable to see if that resolves the issue.
Switch to a different USB port
Sometimes the USB port can be the culprit. Switch to another door. You can see better results.
Update smartphone USB settings
After connecting the USB cable to your Mac and Android phone, update your USB settings. This is particularly necessary if the error message “The device memory cannot be accessed” appears.
After connecting the cable, open your Android device and swipe down from the top. Look for “USB charge this device” in the list of notifications. Then double-tap it and open the USB settings in the Settings app. Once the page opens, select File Transfer/Android Auto under Use USB for.
Although the steps to update the USB settings are different, the basic principles remain the same. After selecting the above option, your Android device will share its internal storage via a USB cable. Then you can view your Android phone’s folders and files on Mac. During the transfer process, your Android device should be unlocked to avoid further problems.