Android - ./gradlew bundleRelease not including ic_launcher_round from settings #26313
Labels
API: Settings
Bug
Platform: Android
Android applications.
Stale
There has been a lack of activity on this issue and it may be closed soon.
Tech: Bundler 📦
This issue is related to the bundler (Metro, Haul, etc) used.
On latest major version of
react-native
,./gradlew bundleRelease
followed byreact-native run-android --variant=release
results in an.apk
file with default Android icon foric_launcher_round
(newer version of Android on installed device)Can confirm that icons are included correctly:
And referenced in
AndroidManifest.xml
:Running in
debug
mode viareact-native run-android
results in the correct icon being displayed on device after installation, but bundling/installing inrelease
mode shows default android icon.React Native version:
Steps To Reproduce
react-native init ...
ic_launcher.png
andic_launcher_round.png
) tosrc\main\res\mipmap-{size}dpi
cd android && ./gradlew clean
.aab
inrelease
mode via./gradlew bundleRelease
.apk
on device viacd .. && react-native run-android --variant=release
Intended Outcome
App is installed on device and custom icon is displayed.
Actual Outcome
App is installed on device, but default android icon is displayed.
Additional information can be found on open question on StackOverflow:
https://stackoverflow.com/questions/57775250/react-native-0-60-ic-launcher-round-missing-for-release-bundle-build
The text was updated successfully, but these errors were encountered: