Apollo-android: Failed to apply plugin [id 'com.apollographql.apollo'] apollo-android requires Gradle version 6.0 or greater

Created on 27 Apr 2020  路  5Comments  路  Source: apollographql/apollo-android

I cannot build project after migration to version. 2.0.0

`Failed to apply plugin [id 'com.apollographql.apollo']

apollo-android requires Gradle version 6.0 or greater`

gradle-plugin Bug

Most helpful comment

Yes, it works. Thank you!

All 5 comments

This error is expected. If I remember correctly, Gradle 6 was required mainly for gradle metadata.
It should work well if you bump your Gradle version to 6.0.0+

From docs:

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

It doesn't work.

I ran into the same issue, enableFeaturePreview("GRADLE_METADATA") didn't work so had to upgrade to Gradle 6.

@piotr-pawlowski does it work for you if you update to Gradle 6 ?

Yes, it works. Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TonnyL picture TonnyL  路  3Comments

john-lanticse picture john-lanticse  路  3Comments

gmrandom picture gmrandom  路  4Comments

juliafu1 picture juliafu1  路  4Comments

RageshAntony picture RageshAntony  路  3Comments