Advanced_Android_Development
Advanced_Android_Development copied to clipboard
Error:Execution failed for task ':app:mergeDebugResources'.
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