question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Task :app:mergeDebugResources FAILED

See original GitHub issue

Describe the bug Build getting failed with Task :app:mergeDebugResources FAILED error

To Reproduce Steps to reproduce the behavior:

  1. follow the startup guide
  2. Add dependency
  3. Build project
  4. See build error

Screenshots https://imgur.com/a/iMkysPE

Full error logs `> Task :app:mergeDebugResources /home/dalakoti07/.gradle/caches/transforms-3/ac13ed731ff91608bb885e6070e58d98/transformed/preference-1.1.1/res/values/values.xml:424:4: Duplicate value for resource ‘attr/min’ with config ‘DEFAULT’ and product ‘’. Resource was previously defined here: /home/dalakoti07/AndroidStudioProjects/consumer/commons/ui/build/intermediates/packaged_res/debug/values/values.xml:1749:4: .

Task :app:mergeDebugResources FAILED Execution failed for task ‘:app:mergeDebugResources’. A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable Resource compilation failed. Check logs for details.

`

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Dalakoti07commented, Aug 27, 2021

As of now I have changed my attribute values and its working fine. Not getting any conflicting build issue

1reaction
Dalakoti07commented, Aug 27, 2021

Thanks @srtvprateek looking forward for the fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

“Execution failed for task ':app:mergeDebugResources'” if ...
This is caused by the path length restriction. I think it's 256 characters maximum. Relocate your project and the build will succeed.
Read more >
Execution failed for task ':app:mergeDebugResources'. com ...
* What went wrong: Execution failed for task ':app:mergeDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.
Read more >
Execution failed for task ':app:mergeDebugResources ...
Failed to transform unity-ads.aar to match attributes {artifactType=android-res}. > Execution failed for JetifyTransform: I:\Projects\MalomatV2- ...
Read more >
Android Studio Execution failed for task app ... - Edureka
Android Studio Execution failed for task app mergeDebugResources if project is created on drive C.
Read more >
Execution failed for task ':app:mergeDebugResources'
A failure occurred while executing com.android.build.gradle.internal.res.ResourceCompilerRunnable Resource compilation failed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found