Compatibility issue with Java 1.7
See original GitHub issueHi,
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:
- Created 7 years ago
- Reactions:1
- Comments:17 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, I made a mistake with the latest version, I will try and release a 1.7 compatible version as soon as I can.
I just deployed 0.30, compiled with Kotlin 1.1.0. Can you try again?