This error usually pops up when you connect your device to your computer using a USB connection. It means that the computer was unable to successfully establish a connection with the device; hence the device driver installation failed.

Before we move on to the troubleshooting, you should make sure that your phone hardware is working fine and there are no faults. Try connecting the device to other computers and check if they connect successfully there. Try connecting the USB to different ports on the computer (try both front and back in your PC). You should also check if the cable you are using is functioning properly. Try using different data transfer tables and check if there is any difference. You can also try checking the option “USB debugging” on your mobile device and then try plugging it into your computer. If this doesn’t make any effect, you can always revert back the changes.

Solution 1: Using Command Prompt

We can try running one command on your command prompt related to the local group on your computer. Most of the time the error message is just caused by the UAC restricting the computer from installing the required device drivers. We can try changing that through the command prompt and check if this solves the problem.  

Solution 2: Checking Registry Settings

Another reason why this error might be occurring is that your registry settings might be set not to recognize and install an external device. We can try changing the registry settings by deleting one entry and check if this solves the problem at hand. If you don’t find the folder, head over to the next solution as this one isn’t fit for your computer.

Note: Registry Editor is a powerful tool. Editing the keys which you don’t know about can hamper your computer and even make it unusable. It is advised to back up your registry before implementing any changes to make sure that you can always restore it if anything goes wrong.

Solution 3: Installing the MTP Porting Kit

If the problem still persists, it can mean that you don’t have the MTP Porting Kit installed on your computer or it is outdated. We can try installing the latest kit from Microsoft’s official website and check if this brings any difference.

How to Fix MTP Devices not Connecting on Windows 10How to Transfer Files Between Android Phones and Tablets With MTP on UbuntuUSB 2.0 vs USB 3.0 vs USB 3.1: Which should you Have and Why?Fix: USB Composite Device can’t work properly with USB 3.0 Fix  MTP USB Device Driver Failed - 50Fix  MTP USB Device Driver Failed - 23Fix  MTP USB Device Driver Failed - 15Fix  MTP USB Device Driver Failed - 36