React Native 0.60 - Ic_launcher_round Missing For Release Bundle/build
I'm trying to generate a release build of a react-native project, and am having issues with the ic_launcher_round.png not being included; it is simply showing the default android o
Solution 1:
Rename both ic_launcher.png and ic_launcher_round.png to something else like my_ic_launcher.png
Make the change in manifest:
<application
android:name=".MainApplication"
android:label="@string/app_name"
android:icon="@mipmap/my_ic_launcher"
android:roundIcon="@mipmap/my_ic_launcher_round"
>
Clean and build.
Solution 2:
The res
folder in both src/main
and src/release
contained two files:
- ic_launcher_foreground.xml- ic_launcher_background.xml
As well as a drawable
folder with the same two files repeated. Simply removing these files (total of 8 files across 4 locations) and forcing the app to fallback to the .png
files specified in the various mipmap
folders allows the icon to display correctly in both debug
and release
builds.
Post a Comment for "React Native 0.60 - Ic_launcher_round Missing For Release Bundle/build"