Notice: The Monaca & Onsen UI Community Forum is shutting down.

For Onsen UI bug reports, feature requests and questions, please use the Onsen UI GitHub issues page. For help with Monaca, please contact Monaca Support Team.

Thank you to all our community for your contributions to the forum. We look forward to hearing from you in the new communication channels.

Error building Android file since upgrade to 11.0



  • I am getting the error below since upgrading to Cordova 11.0

    [02:24:01] Command failed with exit code 1: /tmp/download/platforms/android/gradlew :app:bundleRelease -b /tmp/download/platforms/android/build.gradle


  • administrators

    We will need the full error message as this does not currently give enough information.

    You can also try contacting Monaca Support Team if you have a paid plan.



  • Here is more of the log:
    [22:57:27]
    [22:57:27] Reason: Annotations on fields are only used if there’s a corresponding getter for the field.
    [22:57:27]
    [22:57:27] Possible solutions:
    [22:57:27] 1. Add a getter for field ‘packageNameXOR1’.
    [22:57:27] 2. Remove the annotations on ‘packageNameXOR1’.
    [22:57:27]
    [22:57:27] Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    [22:57:27] - In plugin ‘com.google.gms.googleservices.GoogleServicesPlugin’ type ‘com.google.gms.googleservices.GoogleServicesTask’ field ‘packageNameXOR2’ without corresponding getter has been annotated with @Input.
    [22:57:27]
    [22:57:27] Reason: Annotations on fields are only used if there’s a corresponding getter for the field.
    [22:57:27]
    [22:57:27] Possible solutions:
    [22:57:27] 1. Add a getter for field ‘packageNameXOR2’.
    [22:57:27] 2. Remove the annotations on ‘packageNameXOR2’.
    [22:57:27]
    [22:57:27] Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    [22:57:27] - In plugin ‘com.google.gms.googleservices.GoogleServicesPlugin’ type ‘com.google.gms.googleservices.GoogleServicesTask’ field ‘quickstartFile’ without corresponding getter has been annotated with @InputFile, @Optional.
    [22:57:27]
    [22:57:27] Reason: Annotations on fields are only used if there’s a corresponding getter for the field.
    [22:57:27]
    [22:57:27] Possible solutions:
    [22:57:27] 1. Add a getter for field ‘quickstartFile’.
    [22:57:27] 2. Remove the annotations on ‘quickstartFile’.
    [22:57:27]
    [22:57:27] Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    [22:57:27] - In plugin ‘com.google.gms.googleservices.GoogleServicesPlugin’ type ‘com.google.gms.googleservices.GoogleServicesTask’ field ‘searchedLocation’ without corresponding getter has been annotated with @Input.
    [22:57:27]
    [22:57:27] Reason: Annotations on fields are only used if there’s a corresponding getter for the field.
    [22:57:27]
    [22:57:27] Possible solutions:
    [22:57:27] 1. Add a getter for field ‘searchedLocation’.
    [22:57:27] 2. Remove the annotations on ‘searchedLocation’.
    [22:57:27]
    [22:57:27] Please refer to https://docs.gradle.org/7.1.1/userguide/validation_problems.html#ignored_annotations_on_field for more details about this problem.
    [22:57:27] * Try:
    [22:57:27] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with
    [22:57:27] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
    [22:57:27] You can use ‘–warning-mode all’ to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
    [22:57:27] See https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    [22:57:27] 4 actionable tasks: 4 executed
    [22:57:27] --scan to get full insights.
    [22:57:27] * Get more help at https://help.gradle.org
    [22:57:27] BUILD FAILED in 25s
    [22:57:27] Command failed with exit code 1: /tmp/download/platforms/android/gradlew :app:bundleRelease -b /tmp/download/platforms/android/build.gradle