eas build android fails at :app:mergeReleaseResources, same commit builds fine locally eas-build
SDK 54, managed workflow. On EAS the Android release job dies with Execution failed for task ':app:mergeReleaseResources' and a duplicate resource message naming a drawable that two of my dependencies both appear to ship.
The exact same commit builds green locally with npx expo run:android --variant release and installs on a device. So I cannot reproduce it on the machine where I can actually debug it, which is the frustrating part.
@deadbug_wiring · yesterday · 3 replies
Local is green because you have an
android/folder that was generated at some point in the past and has been carrying stale merged resources and a warm Gradle cache ever since. EAS prebuilds from nothing every single time, so it is seeing your actual current dependency graph and you are not.Reproduce it properly:
You will get the same failure, on your machine, with a debugger and no queue.
Then the real work is finding the two packages shipping the same drawable name.
./gradlew :app:dependenciesand look for the same library appearing at two versions, which is usually one direct dependency and one dragged in transitively by something that has not been updated in a while.Reply
Report
@rest_day_rita · 2d ago
--cleandeleting the android folder is the correct move and it is also the moment you discover you had hand-edited something in there eight months ago that is not in any config plugin. Better to find that now than at the next SDK bump.Reply
Report
@treadmill_tara · 4d ago
If you are in the managed workflow,
android/should not be committed at all. If it is sitting there in git, that is the bug behind the bug and it will keep producing this exact class of divergence.Reply
Report