Execution failed for task ':app:mergeReleaseResources'. after exp build:android
See original GitHub issueReact 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:
- Created 4 years ago
- Comments:6
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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!
this is work for me thank @KaoPengHsiang