square / assertj-android

A set of AssertJ helpers geared toward testing Android.

Home Page:https://square.github.io/assertj-android/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't compile version 1.0.8

jekopena opened this issue · comments

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.+'

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.

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