Diamond types are not supported at this language level – Android Studio
|Searching for this specific error message online reveals a lot of different reasons that you may get this error:
- You are linking to the wrong version of the JDK.
- Your config files are conflicting with each other, causing you to compile against the wrong version of the JDK.
But in my case, it was simply that I had just cloned the project for the first time from git, and even though there were several places giving me that error, all I needed to do was
run the build.gradle for the appropriate project
Voila! Fixed. Since that answer didn’t seem to be out there anywhere, I figured I’d write a quick blog post about it.
BTW, yes this does mean that we’re actively working on the Android port of Name Shark!