i am using realm and retrolambda, i want to add exoplayer to my project and it requires java 8 support, when i add compile options java 8 and i rebuild project, i get this error :
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.
If you are using the 'java' gradle plugin in a library submodule add
`targetCompatibility` = '1.7'
`sourceCompatibility` = '1.7'
to that `submodule's build.gradle` file.
i created a test project and i added exoplayer
and when i added compile options java 8 i also added jackoption
and it worked without any problem,but in my project i have retrolambda
that does not allow me to add jack option,what can i do for this?