To Solve this problem in Android Studio go to:
File
-> Settings
-> Build, Execution, Deployment
-> Compiler
-> Java Compiler
Change javac to eclipse, and apply.
To Solve this problem in Android Studio go to:
File
-> Settings
-> Build, Execution, Deployment
-> Compiler
-> Java Compiler
Change javac to eclipse, and apply.