Reputation: 83567
I am trying to use the diamond error in a libgdx project which I have imported into Android Studio. However, I get the following error message:
Error:(34, 50) Gradle: error: diamond operator is not supported in -source 1.6 (use -source 7 or higher to enable diamond operator)
How do I configure my project to use -source 7
instead?
Upvotes: 0
Views: 420
Reputation: 83567
Some google-foo finally found the answer in #libgdx chat transcripts. I found every occurrence of sourceCompatibility
in the existing build.gradle
files (using Ctrl-Shift-F or Edit->Find->Find in Path...) and changing the value from '1.6'
to '1.7'
.
Upvotes: 2