相关疑难解决方法(0)

Android-Cordova 10.0.1 任务:app:processDebugGoogleServices 失败

我已将 cordova-android 版本从 9.0 升级到 10.0.1,并在使用 - ionic cordova build android 构建 Cordova 应用程序时遇到以下问题

错误:

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

android cordova google-play-services ionic-framework cordova-plugins

5
推荐指数
1
解决办法
1万
查看次数