- you must add platform in your project use
ionic platform add androidorionic platform add ios - then run this command
ionic resource --iconand orionic resource --splash - Next step, put your icon file on "resources/android/icon/" and for splashscreen in "resources/android/splash/"
- Note : check your config.xml. see code bellow :
<platform name="android">
<icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
<icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
<icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
<icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
<icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
<icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
<splash density="port-ldpi" src="resources/android/splash/drawable-port-ldpi-screen.png" />
<splash density="port-mdpi" src="resources/android/splash/drawable-port-mdpi-screen.png" />
<splash density="port-hdpi" src="resources/android/splash/drawable-port-hdpi-screen.png" />
<splash density="port-xhdpi" src="resources/android/splash/drawable-port-xhdpi-screen.png" />
</platform>
there is file names that executed by ionic for generate icons and splashscreen. So, make sure that your file name is same with it. for ldpi, mdpi, hdpi, xhdpi, etc, it's just a dimension of the image.
then build your project into apk file, hope this help you. and i'm sorry for my bad english.