I am getting error after updating the version of Android Studio 3.1 Canary 6
I don\'t why its happen, before that it\'s running successfully.
I have resolved this issue after selecting the "Target Compatibility" to 1.8 Java version. File -> Project Structure -> Modules.