I have upgraded the cordova-android version from 9.0 to 10.0.1 and facing the below issues while building the Cordova app using - ionic cordova build android
Errors:
Task :app:processDebugGoogleServices FAILED
Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask').
- In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'intermediateDir' without corresponding getter has been annotated with @OutputDirectory.
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'.
Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
- In plugin 'com.google.gms.google-services' type 'com.google.gms.googleservices.GoogleServicesTask' field 'packageNameXOR1' without corresponding getter has been annotated with @Input.
Info:
Cordova CLI - 10.0.0
Cordova android: 10.0.1
Node: v12.18.2
npm: 6.14.13
Project Installed Plugins:
@havesource/cordova-plugin-push: 2.0.0
cordova-android-play-services-gradle-release: 4.0.0
cordova-background-geolocation-lt: 4.0.1
cordova-plugin-advanced-http: 3.1.0
cordova-plugin-android-permissions: 1.1.2
cordova-plugin-androidx-adapter: 1.1.3
cordova-plugin-androidx: 3.0.0
cordova-plugin-app-launcher: 0.4.0
cordova-plugin-app-version: 0.1.12
cordova-plugin-appminimize: 1.0.1
cordova-plugin-background-fetch: 7.0.1
cordova-plugin-badge: 0.8.8
cordova-plugin-camera: 5.0.2
cordova-plugin-device: 2.0.3
cordova-plugin-file-opener2: 3.0.5
cordova-plugin-file: 6.0.2
cordova-plugin-filepath: 1.6.0
cordova-plugin-googlemaps: 2.7.1
cordova-plugin-inappbrowser: 5.0.0
cordova-plugin-ionic-keyboard: 2.2.0
cordova-plugin-ionic-webview: 4.2.1
cordova-plugin-local-notification: 0.9.0-beta.2
cordova-plugin-market: 1.2.0
cordova-plugin-ms-azure-mobile-apps: 2.0.2
cordova-plugin-network-information: 2.0.2
cordova-plugin-sim: 1.3.3
cordova-plugin-sms-retriever-manager: 1.0.2
cordova-plugin-splashscreen: 6.0.0
cordova-plugin-statusbar: 2.4.3
cordova-plugin-twilio-chat: 3.3.0
cordova-plugin-whitelist: 1.3.4
cordova-sqlite-storage: 6.0.0
phonegap-plugin-barcodescanner: 8.1.0
phonegap-plugin-multidex: 1.0.0
Can anyone have an idea how to resolve this issue?