Skip to content

Error:Execution failed for task ':app:mergeDebugResources'. #64

@mnarasimhan02

Description

@mnarasimhan02

When trying to connect/register my Android app with GCM, I receive the following error during build
Error:Execution failed for task ':app:mergeDebugResources'.

[string/gcm_defaultSenderId] C:\Users\AndroidStudioProjects\Advanced_Android_Development\app\src\main\res\values\strings.xml [string/gcm_defaultSenderId] C:\Users\AndroidStudioProjects\Advanced_Android_Development\app\build\generated\res\google-services\debug\values\values.xml: Error: Duplicate resources

When I verified both the files,I noticed that the only commonality is gcm_defaultSenderId attribute present in both the files. The gcm_defaultSenderid needs to be changed in strings.xml to correctly build the package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions