cool-projects commented on issue #1374: URL: https://github.com/apache/cordova-android/issues/1374#issuecomment-971342687
Thanks @MatheusRBarbosa for your response. I still can't get my build to work with the line `apply plugin: 'com.google.gms.google-services'` commented out in the build.gradle file. Also added the `<preference name="GradlePluginGoogleServicesVersion" value="4.3.8" />` in the config.xml and no luck. Here is the result. ``` > Configure project :app WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html. Error 'Plugin-Version' of 'unspecified' for 'com.android.build.gradle.AppPlugin@96d9e17' is not a valid version number Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease] registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection) > Task :app:processDebugGoogleServices FAILED FAILURE: Build failed with an exception. * What went wrong: Some problems were found with the configuration of task ':app:processDebugGoogleServices' (type 'GoogleServicesTask'). - In plugin 'com.google.gms.googleservices.GoogleServicesPlugin' 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.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'packageName' without corresponding getter has been annotated with @Input. Reason: Annotations on fields are only used if there's a corresponding getter for the field. Possible solutions: 1. Add a getter for field 'packageName'. 2. Remove the annotations on 'packageName'. 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.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'quickstartFile' without corresponding getter has been annotated with @InputFile, @Optional. 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'. 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.googleservices.GoogleServicesPlugin' type 'com.google.gms.googleservices.GoogleServicesTask' field 'searchedLocation' without corresponding getter has been annotated with @Input. 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'. Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings BUILD FAILED in 10s ``` Project configuration Node version: v16.13.0 ionic version: 6.18.1 Angular CLI: 11.2.12 Node: 16.13.0 OS: darwin x64 Angular: 11.2.13 ... animations, common, compiler, compiler-cli, core, forms ... language-service, platform-browser, platform-browser-dynamic ... router Ivy Workspace: Yes Package Version --------------------------------------------------------- @angular-devkit/architect 0.1102.12 @angular-devkit/build-angular 0.1102.14 @angular-devkit/core 11.2.12 @angular-devkit/schematics 11.2.12 @angular/cdk 11.2.12 @angular/cli 11.2.12 @angular/material 11.2.12 @schematics/angular 11.2.12 @schematics/update 0.1102.12 rxjs 6.6.7 typescript 4.0.7 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
