square / assertj-android

A set of AssertJ helpers geared toward testing Android.
https://square.github.io/assertj-android/
Apache License 2.0
1.58k stars 156 forks source link

Can't compile version 1.0.8 #97

Closed jekopena closed 10 years ago

jekopena commented 10 years ago

I've updated Gradle build tools to version 0.10 and fest version from 1.0.7 to 1.0.8. When I run my robolectric unit tests I receive this error from fest classes:

warning: org/fest/assertions/api/ANDROID.class(org/fest/assertions/api:ANDROID.class): major version 51 is newer than 50, the highest major version supported by this compiler. It is recommended that the compiler be upgraded.

And my unit tests don't run anymore. But if I downgrade to fest v1.0.7 everything just go fine, so that's why I think the error could be in this new version. Also I'm using this plugin to run the robolectric tests: 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+'

JakeWharton commented 10 years ago

Looks like you are using Java 6 and the jar was built using Java 7. I can make another release using Java 6 sometime this week.

jekopena commented 10 years ago

Yeah, that was the problem. I've changed to Java 7 and it runs fine. Thanks!