I spent a bit of time troubleshooting this obscure-sounding error today, so I thought I’d share the solution I found. 

Turns out, this error is frequently caused by having multiple instances of the same class in your buildpath - e.g. importing 2 jars that both include the same third party library. Double-check the last thing you imported before the error occurred.