I had the same issue. Look at the steps to resolve the issue.
Step 1: Download and install Smart switch from Samsung
Step 2: Select MTP and ADB on your device and reboot
Step 3: Restart your PC
Step 4: Connect your device to the PC using multiple USB cables. ( If charging cable from Samsung...