Is it possible to use apollo-android v2 with Gradle 5?

91 Views Asked by At

The docs for v2 say that

Gradle 6.x recommended. In 5.x, Gradle Metadata needs to be enabled by putting this into settings.gradle enableFeaturePreview("GRADLE_METADATA")

Which says that 6.x is just recommended, but when I try to use Gradle 5 I get the error

apollo-android requires Gradle version 6.0 or greater

Is there a workaround for this? Upgrading to Gradle 6 is not an option for my project right now.

Here is the change in apollo that bumps the minimum required Gradle version

1

There are 1 best solutions below

0
RyPope On BEST ANSWER

I opened a Github Issue with the apollo-android team and they've merged a fix to remove the Gradle 6 requirement. They've dropped the requirement down to 5.6 though the fix has yet to be merged into a release. Should be available in the next release after v2.3.1.