小编Mat*_*eus的帖子

升级 cordova-android 10 后构建失败

当我升级到时cordova-android@9.0.0cordova-android@10.1.1我在运行时遇到了构建问题cordova build android --release --buildconfig=build.json

问题:

* 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 …
Run Code Online (Sandbox Code Playgroud)

android cordova ionic-framework cordova-android

8
推荐指数
1
解决办法
7860
查看次数