What version of guava is compatible with java 1.7

My project cannot compile with the latest Gauva library, as it seems to be compiled with Java 1.8, and I am using Java 1.7 in my project.

What version of Guava is compatible with Java 1.7?

+5
source share
2 answers

All versions of Guava prior to version 20 are compatible with Java 1.7.

From this email address,

Guava 20 (coming out in early 2016) will be the final version of Guava to support Java 6 or even Java 7. For Guava 21 (ideally in mid-2016), Java 8 is required.

With version 21, we will also launch a new fork, supposedly called guava-android. It will maintain compatibility with Java 6, allowing it to be used for Android applications that support the minimum version of Gingerbread.

+16
source

Versions 12.0 through 20.0 are "compatible with Java 1.7".

From ReleaseHistory google / guava Wiki :

  • Release 21.0 requires JDK 1.8 or later.
  • Releases from 12.0 to 20.0 require JDK 1.6 or later.
  • For releases 1.0 through 11.0, JDK 1.5 or later is required.
+1
source

Source: https://habr.com/ru/post/1245184/


All Articles