question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility issue with Java 1.7

See original GitHub issue

Hi,

I tried to use your library in my Android project with this configuration:

compileSdkVersion 23
    buildToolsVersion "23.0.2"
    defaultConfig {
        applicationId "blah"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

When I try to build I get the error:

Error:com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)

The problem according to Google was some library compiled for Java 1.8. I removed klaxon of my gradle file and my code compiled with no problem.

Suggestions? Thanks in advance.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:17 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
cbeustcommented, Apr 5, 2016

Yes, I made a mistake with the latest version, I will try and release a 1.7 compatible version as soon as I can.

1reaction
cbeustcommented, Mar 8, 2017

I just deployed 0.30, compiled with Kotlin 1.1.0. Can you try again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java SE 7 and JDK 7 Compatibility - Oracle
Incompatibilities between Java SE 7 and Java SE 6. Java SE 7 is strongly compatible with previous versions of the Java platform. Almost...
Read more >
java 1.8 versus java 1.7 Compatibility Issue - Stack Overflow
It is only compatible with java 1.7, and will throw exceptions if the Java version is 1.8. @carbocation The reason may well be...
Read more >
Java SE 7 and SE 7.1 are out of support after July 2022 ... - IBM
Fix/Defect Support for Java SE 7 or Java SE 7.1 with WebSphere Application Server V8.5, will be discontinued after July 2022.
Read more >
Java 1.7 compatibility problem #8 - lemmingapex/trilateration
This is caused by library dependencies that have been compiled using Java 8 or above. If you are using the 'java' gradle plugin...
Read more >
How Spring achieves compatibility with Java 6, 7 and 8
Your application code may then choose to use Java 6, 7 or 8 language level itself, interacting with our framework arrangement and naturally ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found