“ionic cordova build android”命令中的资源重复。 Firebase插件

时间:2017-06-19 07:57:54

标签: android cordova ionic-framework

我正在使用以下插件和命令为android构建一个全新的应用程序。 Cordova插件添加了cordova-plugin-fcm,离子cordova构建android。 这是显示的错误:

Parsing json file: /home/faichi/palav-ui/platforms/android/google-services.json
        :generateDebugResources
        :mergeDebugResources
        [string/google_app_id] /home/faichi/palav-ui/platforms/android/res/values/strings.xml   [string/google_app_id]
        /home/faichi/palav-ui/platforms/android/build/generated/res/google-services/debug/values/values.xml: Error:
    Duplicate resources
    :mergeDebugResources FAILED

    BUILD FAILED

    Total time: 1.683 secs

    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > [string/google_app_id] /home/faichi/palav-ui/platforms/android/res/values/strings.xml [string/google_app_id]
    /home/faichi/palav-ui/platforms/android/build/generated/res/google-services/debug/values/values.xml: Error:
    Duplicate resources

    * Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    Error: /home/faichi/palav-ui/platforms/android/gradlew: Command failed with exit code 1 Error output:
    FAILURE: Build failed with an exception.

    * What went wrong:
    Execution failed for task ':mergeDebugResources'.
    > [string/google_app_id] /home/faichi/palav-ui/platforms/android/res/values/strings.xml [string/google_app_id]
    /home/faichi/palav-ui/platforms/android/build/generated/res/google-services/debug/values/values.xml: Error:
    Duplicate resources

我已经尝试删除android \ res \ values \ strings.xml上的重复值,但是在每个构建中它会返回并显示相同的错误。

这是使用fire bash推送通知服务构建基于cordova的应用程序的当前方法吗?

0 个答案:

没有答案