Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 1.4.8 and 1.4.9 are built with Java8 #84

Closed
dral3x opened this issue Feb 12, 2017 · 4 comments

Comments

@dral3x
Copy link

commented Feb 12, 2017

Hi there,

I've just found a big issue.
I'm working on an Android app what is built with Java7.

With those 2 version of xstream library, I've this 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.

Version 1.4.7 works as expected.

I've loaded the library the usual way

compile 'com.thoughtworks.xstream:xstream:1.4.9'
@joehni joehni self-assigned this Feb 12, 2017
@joehni joehni added the duplicate label Feb 12, 2017
@joehni

This comment has been minimized.

Copy link
Member

commented Feb 12, 2017

Please see issue #49

@dral3x

This comment has been minimized.

Copy link
Author

commented Feb 13, 2017

Got it, thanks!

Is there any copy-and-paste solution for this? For example, as you suggest in #49, for telling the annotation processor to ignore those specific files?

@joehni

This comment has been minimized.

Copy link
Member

commented Feb 13, 2017

Unfortunately nobody reported back something like that, so currently it seems the only possible solution to manipulate the final jar or to build it on your own with JDK 1.7.

@joehni

This comment has been minimized.

Copy link
Member

commented May 23, 2017

Since XStream 1.4.10 an additional artifact of version 1.4.10-java7 exists in the central Maven repository.

@joehni joehni closed this May 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.