Just in case it might save someone else an hour if they are Googling this error.....

If you are copy-pasting the API signature code, it is easy to leave some old text behind when you double click on the existing one. Make sure the box is empty before you paste.