S
S
StynuBlizz2017-02-04 11:29:49
Android
StynuBlizz, 2017-02-04 11:29:49

Gradle error "dex cannot parse version 52 byte code" how to fix?

I added the jBCrypt library to the Android project and when I try to run it, I get the following 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.
What need to do?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-02-04
@sim3x

What need to do?

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.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question