MatheusRBarbosa opened a new issue #1374:
URL: https://github.com/apache/cordova-android/issues/1374


   # Bug Report
   
   ## Problem
   When I upgraded `[email protected]` to `[email protected]` I've got 
a build problem when I run:
    `cordova build android --release --buildconfig=build.json`
   
   ### What does actually happen?
   Problems:
   ```
   * What went wrong:
   Some problems were found with the configuration of task 
':app:processReleaseGoogleServices' (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 'packageNameXOR1' 
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 'packageNameXOR1'.
         2. Remove the annotations on 'packageNameXOR1'.
       
       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 'packageNameXOR2' 
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 'packageNameXOR2'.
         2. Remove the annotations on 'packageNameXOR2'.
       
       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.
   ```
   
   
   ## Information
   I've already tried:
   - Updated some dependencies outdated
   - Remove `cordova-android-play-services-gradle-release` 
`cordova-android-support-gradle-release` `cordova-support-google-services`
   - Add in `config.xml` <br> `<preference 
name="GradlePluginGoogleServicesEnabled" value="true" />` and <br>`<preference 
name="GradlePluginGoogleServicesVersion" value="4.3.8" />` <br> but when I did 
that, I've got another error:
   
   ```
   * What went wrong:
   A problem occurred evaluating project ':app'.
   > Failed to apply plugin 'com.google.gms.google-services'.
      > Cannot add extension with name 'googleServices', as there is an 
extension already registered with that name.
   ```
   
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   This problem occurs in windows and linux.
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   Ionic CLI: 5.4.16
   Ionic Framework: ionic-angular 3.9.8
   @ionic/app-scripts: 3.2.4
   
   Cordova CLI: 10.0.0
   Cordova Platorms: android 10.1.1
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


-- 
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]

Reply via email to