Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Cannot build with java 1.7 #5

Closed
johnwatsondev opened this issue Mar 13, 2017 · 0 comments
Closed

Cannot build with java 1.7 #5

johnwatsondev opened this issue Mar 13, 2017 · 0 comments
Labels

Comments

@johnwatsondev
Copy link

My main android module build file have set java version = 1.7

  compileOptions {
    encoding "UTF-8"
    sourceCompatibility JavaVersion.VERSION_1_7
    targetCompatibility JavaVersion.VERSION_1_7
  }

Here is the error message when ran the app.

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.
...while parsing com/anupcowkur/herebedragons/SideEffect.class
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants