Using Android Studio 3.3 Canary 11 with the gradle plugin version 3.3.0-alpha11. It throws the following error when trying to sync gradle
3.3.0-alpha11
WARNI
Changing source compatibility in module build.gradle file to Java 8 fixes the issue
build.gradle
compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 }
Be sure to rebuild the project after adding those lines