capacitor-assets: ERROR: Missing source image for "icon" ...
ERROR: Missing source image for "icon" (sources: resources/android/icon.png, resources/android/icon.jpg, resources/android/icon.jpeg, resources/icon.png, resources/icon.jpg, resources/icon.jpeg)
Simply running cordova-res
gives me that output…
I’m running on the project root and I have the resources/icon.png
file…
So, am I missing something really obvious or its there really a bug?
Also tried: cordova-res --type=icon --icon-source=resources/icon.png
and same error
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 23 (6 by maintainers)
After changing the icon to a 1024px image it works with no problems…
At this point I would close the issue because was my mistake but there’s still the wrong error message problem…
Use proper dimension for image, icon.png = 1024x1024 px splash.png = 2732x2732 then run " ionic cordova resources " command it can solve your issue in not let me know
Hey all, I just pushed 0.5.1 which should show very specific errors for invalid sources images. Here’s an example you may see:
Let me know what you think!
Great thanks. One less thing to have to debug 😃
The cause of this error can be seen with the
--verbose
flag, but obviously we need to be a lot better at bubbling up the reason for this issue: small dimensions or invalid files.Is there anyway to keep 512x512 for Android or is this a requirement going forward? I’ve got a couple hundred apps that are managed. The current assets are all setup in our CD to 512 and would be a huge undertaking to increase to 1024x1024. The original solutions that was build used the Heroku ionic resource tool which recently got decommissioned and accepted 512x512. Any suggestions are appreciated
Awesome, thank you!