sameera207
sameera207

Reputation: 16619

Splash screen and icon is not generating for Android

I'm using the Ionic 2 resource generator to generate the icon and splash screen for my mobile app. I have two images in resources folder; icon.png and splash.png.

I'm using the following commands to generate the resources:

ionic resources --icon
ionic resources --splash

I can see it generates icons for both iOS and Android.

enter image description here

And it's working for iOS without a problem. However I cannot see the icon or splash screen on Android devices. What could I be missing here?

My ionic version is CLI v2.1.4.

Upvotes: 2

Views: 750

Answers (2)

Franco
Franco

Reputation: 858

There was a recent new version of Ionic CLI that targets this problem. Update with:

npm install -g ionic@latest

Make sure your image is on the following format:

icon.png: 1024x1024

plash.png: 2208x2208

Finally you can just run

ionic resources

No need for the flags.

Upvotes: 0

bmukorera
bmukorera

Reputation: 110

try deleting your android folder in the resources,run the command cordova prepare android and regenerate the resources, Also check to make sure your files are not too big, check out the response in the question that was asked here

Upvotes: 0

Related Questions