I am facing this error since i have updated my android studio to 2.2.1.
Error: Error converting bytecode to dex: Cause: Dex cannot parse version 52 byte code. This is caused by library dependencies that have been compiled using Java 8 or above.
So far i have tried:
- cleaning and building the project
- adding " sourceCompatibility = "1.7" targetCompatibility = "1.7" " to the gradle file.
Can anyone suggest how to solve this problem.