Android users: Please test recent Guava versions
If you know of Guava Android users who have not yet upgraded to at least release 33.0.0, please encourage them to upgrade, preferably to today's release, 33.2.0. These releases have begun adding Java 8+ APIs to guava-android
. While we don't anticipate problems, we do anticipate that any unexpected problems could force a disruptive rollback. To minimize any disruption, we'd like to catch any such problems early.
Please let us know of any problems you encounter.
Maven
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.2.0-jre</version>
<!-- or, for Android: -->
<version>33.2.0-android</version>
</dependency>
Jar files
Guava requires one runtime dependency, which you can download here:
Javadoc
JDiff
Changelog
- Dropped testing for Android versions before Lollipop (API Level 21). Guava may stop working under older versions in the future, or it may have done so already.
- Fixed a GWT compilation breakage under Gradle. (858caf4)
collect
: Made ourCollector
APIs (e.g.,ImmutableList.toImmutableList()
) available inguava-android
. More Java 8 APIs will follow in future releases. (96fca0b)- As always, streams are available to Android code only when that code enables library desugaring or targets a new enough API Level (24 (Nougat) for many stream APIs). (But note that we test only with library desugaring, so we don't currently know if API Level 24 is high enough to use our
Collector
APIs unless you have also enabled library desugaring.) Guava users who avoid theCollector
APIs do not need to meet this requirement.
- As always, streams are available to Android code only when that code enables library desugaring or targets a new enough API Level (24 (Nougat) for many stream APIs). (But note that we test only with library desugaring, so we don't currently know if API Level 24 is high enough to use our
collect
: Fixed a potentialNullPointerException
inImmutableMap.Builder
on a rare code path. (70a9811)net
: AddedHttpHeaders
constantsAd-Auction-Allowed
,Permissions-Policy-Report-Only
, andSec-GPC
. (7dc01ed, 41d0d9a, 38c8017)