I've had a Nikon D7100 for about 6 years and have always used the Nikon 18-55mm AF-S lens that came with it. I've never had any problems with the camera. I've also never taken off this lens for the 6 years I've had the camera.
Recently, I got a Nikon 50mm f/1.8G AF-S lens. After I took off the original 18-55mm lens to attach this new 50mm, the Autofocus stopped working.
I checked all of the focusing switches (both the one on the body and the lens) and all are in the correct positions (AF and M/A). I also reset the camera's settings, but it still didn't work.
Then, I switched back to the original 18-55mm (which had been working perfectly before) to see if it's the lens or the body that is causing the problem. But now, the original 18-55mm won't autofocus either (again, all switches are in correct place).
I've looked through all of the related questions on this website, as well as other websites. But I can't find any answer for how to fix this. I also tried cleaning the contacts, but no progress. Any help would be really appreciated!