`ns resources generate icons` - cli script update needed to support latest Android vector graphic launchers.
Environment zsh on macOS Catalina 10.15.7
✔ Component nativescript has 8.0.1 version and is up to date. ✔ Component @nativescript/core has 8.0.3 version and is up to date. ✖ Component @nativescript/ios is not installed. ✔ Component @nativescript/android has 8.0.0 version and is up to date.
Describe the bug Created icon.png with 1024x1024 size.
tns resources generate icons ~/icon.png
Generating icons ...
Icons generation completed.
.. however, Android icons did not get created. Even when creating the mipmap icons, they don't get applied and the nativescript icon is associated with the app. No error messages. Splashes are generated correctly.
Expected behavior The launcher icon should be generated from the image.
I've managed to create a launcher icon directly from SVG. ...
Here are the steps:
Open Android Studio, create a new app.
Open the menu on the app folder, New > Vector Asset.
Save the vector graphic as ic_*.xml file.
Replace /App_Resources/Android/src/main/res/drawable/ic_launcher_foreground.xml with your xml.
A bit hackerish, but it works. ....
same error here
me too
Same here. Icons are not being created by tns resources.
Any update on this? Or is there an alternative way to generate icons?