android - bug: Splash and Icon generator not working (Ionic and Cordova) -
type: bug
platform: mobile webview
i tried use ionic splash , icon generator blog/website tutorial. not read png files, though placed them in root. converted them ai files , return error saying files not read (although open in preview , in adobe illustrator).
then used cordova generator instructions , got error:
{ [error: command failed: convert: unable open image platforms/ios/splash/resources/icons/icon-72@2x.png': no such file or directory @ error/blob.c/openblob/2675. convert: writeblob failedplatforms/ios/splash/resources/icons/icon-72@2x.png' @ error/png.c/magickpngerrorhandler/1630. ] timedout: false, killed: false, code: 1, signal: null }
if you're using 1 of latest version of ionic-cli things should work properly.
npm update -g ionic
to update cli.
once have created project have add platform:
ionic platform add android ionic platform add ios
in root of project should find folder called resources
.
place icon file , splash screen file:
- icon.png
- splash.png
the icon image's minimum dimensions should 192x192 px, , should have no rounded corners.
now, root folder of project:
ionic resources
and should create resources platform defined.
Comments
Post a Comment