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.

Execution failed for task ':app:mergeReleaseResources'. after exp build:android

See original GitHub issue

React Native version: https://github.com/expo/react-native/archive/sdk-33.0.0.tar.gz

Describe what you expected to happen: The build is successful when I do not change the default icon in app.json but the build fails with the following error message when I change the icon. I have checked the icon, it is definitely a png file.

> Task :app:mergeReleaseResources FAILED
17 actionable tasks: 17 executed
[stderr] FAILURE: Build failed with an exception.
[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeReleaseResources'.
[stderr] > java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource compilation failed
[stderr]   /app/turtle/workingdir/android/sdk33/android-shell-app/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: error: failed to read PNG signature: file does not start with PNG signature.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
thomdigithscommented, Sep 26, 2019

For feature googlers: in my case i just upgraded to RN 0.60, which places an empty ic_launcher_round.png file in my app/src/main/res/mipmax-xxx folders. Place a real png file there and the error should be gone!

1reaction
Ankit2388commented, Jul 23, 2020

this is work for me thank @KaoPengHsiang

Read more comments on GitHub >

github_iconTop Results From Across the Web

EAS build fails for Android: Execution failed for task ':app ...
Hello dear Expo Team, I am running into an issue after moving from expo build to eas builds. On iOS I was able...
Read more >
I can't build expo app (:app:mergeReleaseResources)
I was facing this issue too, and I resolved it by using "expo-cli build:android -t apk" instead of "exp build:android".
Read more >
Error Execution failed for task ':app:mergeReleaseResources ...
Android : Error Execution failed for task ': app : mergeReleaseResources ' building APK [ Beautify Your Computer ...
Read more >
App:mergeReleaseResources react-native, Execution failed ...
It means the resource file is being imported more than once. You should only have one {$R *.res} in your dpr file. To...
Read more >
Generate Release APK with ReactNative CLI (Errors Fixed)
How to generate android APK files for android mobile apps in React Native CLI ... Execution failed for task ':app:mergeReleaseResources'. … BUILD 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