【问题标题】:Problem while running Cordova build Android运行 Cordova build Android 时出现问题
【发布时间】:2019-06-08 21:41:23
【问题描述】:

FAILURE:构建失败并出现异常。

  • 在哪里: 脚本'C:\Users\Aya Morsi\Desktop\CSapp\CS\platforms\android\cordova-support-google-services\starter-build.gradle' 行:16

  • 出了什么问题: 评估项目 ':app' 时出现问题。

    未能应用插件 [class 'com.google.gms.googleservices.GoogleServicesPlugin'] 无法添加名称为“googleServices”的扩展程序,因为已使用该名称注册了一个扩展程序。

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

  • 通过https://help.gradle.org获得更多帮助

8 秒后构建失败 cmd:命令失败,退出代码 1 错误输出: FAILURE:构建失败并出现异常。

  • 在哪里: 脚本'C:\Users\Aya Morsi\Desktop\CSapp\CS\platforms\android\cordova-support-google-services\starter-build.gradle' 行:16

  • 出了什么问题: 评估项目 ':app' 时出现问题。

    未能应用插件 [class 'com.google.gms.googleservices.GoogleServicesPlugin'] 无法添加名称为“googleServices”的扩展程序,因为已使用该名称注册了一个扩展程序。

  • 尝试: 使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。

  • 通过https://help.gradle.org获得更多帮助

8 秒后构建失败 [ERROR] 运行子进程cordova时出错。

    cordova build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

【问题讨论】:

  • 只是在黑暗中拍摄,尝试删除平台ionic cordova platform remove android,然后再次添加它ionic cordova platform add android,然后构建它ionic cordova build android

标签: android cordova ionic-framework


【解决方案1】:

您似乎拥有多个使用 Google Play 服务的插件,可能版本不同。有一个插件可以解决这个问题,尝试安装它,然后尝试构建

https://github.com/dpa99c/cordova-android-play-services-gradle-release

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-16
    • 2016-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-02
    • 1970-01-01
    相关资源
    最近更新 更多