Skip to main content

– Type ‘com.google.gms.googleservices.GoogleServicesTask’ field ‘intermediateDir’ without corresponding getter has been annotated with @OutputDirectory.

AndroidでGradle7系にあげたら以下のエラーが出た
– Type ‘com.google.gms.googleservices.GoogleServicesTask’ field ‘intermediateDir’ without corresponding getter has been annotated with @OutputDirectory.

この対応策

com.google.gms:google-services
のバージョンが4.2.0で低いことが理由
4.3.10に上げたら解決しましたとさ

参考
https://stackoverflow.com/questions/68604375/type-googleservicestask-field-intermediatedir-without-corresponding-getter

関連記事:

Pocket