What version of MPLABX are you using? I had v3.60 installed but had to update to 4.0 to work with the 18FxxK40. If you can't find the chip, your MPLABX is probably too old.