I want to connect bone with the mesh with automatic weights but when I press Ctrl+P->With automatic weights it brings me this error , I tried to remove doubles but the error hasn`t gone .
I found the problem for me... I scaled, rotated and moved the mesh and the skeleton in object mode. Meaning the object center of both of them doesnt match. Set the position and rotation in object mode on all axis to 0 and set the scale to 1 (for both skeleton and mesh) Go to edit mode move your mesh and rig around and make everything fit. Now go back to object mode make sure position, rotaion and scale are still the same for mesh and skeleton... if so you should be able to parent your stuff properly.