Advanced_Android_Development icon indicating copy to clipboard operation
Advanced_Android_Development copied to clipboard

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

Open mnarasimhan02 opened this issue 8 years ago • 0 comments

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

mnarasimhan02 avatar Oct 23 '16 16:10 mnarasimhan02