Can I use autofocus in Nikon D3100 body with Nikon AF-S Nikkor 50mm f/1.8G lens?
If possible then how? I have recently bought one but can't use autofocus. The camera is showing me lens is not attached.
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It only takes a minute to sign up.
Sign up to join this communityAssuming there is nothing with either the lens or the camera body, then yes, your AF-S lens is fully compatible (including autofocus) with the Nikon D3100.
See the 2nd row of the Nikon lens compatibility chart.
If the camera says your lens is not attached, then one of the following is probably happening: