# Fixing In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.

Today I tried to recompile a very old Flutter project. Besides migrating to Android 1.12, I had to upgrade the Kotlin library and Gradle like in https://www.wafrat.com/fixing-module-was-compiled-with-an-incompatible-version-of-kotlin/. But then I got a new error:

Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask').

Reason: Annotations on fields are only used if there's a corresponding getter for the field.

Possible solutions:
1. Add a getter for field 'intermediateDir'.
2. Remove the annotations on 'intermediateDir'.

Reason: Annotations on fields are only used if there's a corresponding getter for the field.

Possible solutions:
1. Add a getter for field 'packageNameXOR1'.
2. Remove the annotations on 'packageNameXOR1'.

Reason: Annotations on fields are only used if there's a corresponding getter for the field.

Possible solutions:
1. Add a getter for field 'packageNameXOR2'.
2. Remove the annotations on 'packageNameXOR2'.

Reason: Annotations on fields are only used if there's a corresponding getter for the field.

Possible solutions:
1. Add a getter for field 'quickstartFile'.
2. Remove the annotations on 'quickstartFile'.

Reason: Annotations on fields are only used if there's a corresponding getter for the field.

Possible solutions:
1. Add a getter for field 'searchedLocation'.
2. Remove the annotations on 'searchedLocation'.

BUILD FAILED in 1m 33s