Ionic cordova resources issue

I have an issue running ionic cordova resources

[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
āœ– Collecting resource configuration and source images - failed!
Error: Source image files were not found for the following platforms/types:

Running ionic cordova resources --verbose shows this:

[DEBUG] Load global plugin @ionic/cli-plugin-proxy
[DEBUG] Throwing PLUGIN_NOT_INSTALLED for global @ionic/cli-plugin-proxy
[DEBUG] Load local plugin @ionic/cli-plugin-cordova
[DEBUG] Load local plugin @ionic/cli-plugin-ionic-angular
[DEBUG] resourceJsonStructure=3
[DEBUG] platformDirContents=android
[DEBUG] buildPlatforms=android
[DEBUG] getProjectPlatforms completed - length=1
[DEBUG] imgResources=18
[DEBUG] createImgDestinationDirectories completed - length=2
[DEBUG] getSourceImages completed - 0
[WARN] Error occurred during command execution from a CLI plugin (@ionic/cli-plugin-cordova). Your plugins may be out of date.
[DEBUG] !!! ERROR ENCOUNTERED !!!
āœ– Collecting resource configuration and source images - failed!
Error: Source image files were not found for the following platforms/types:

[DEBUG] Error: Source image files were not found for the following platforms/types:

            at ResourcesCommand.<anonymous> (C:\Users\Phil\code\Documents\myApp\node_modules\@ionic\cli-plugin-cordova\dist\commands\resources.js:103:23)
            at next (native)
            at fulfilled (C:\Users\Phil\code\Documents\myApp\node_modules\@ionic\cli-plugin-cordova\dist\commands\resources.js:10:58)

My ionic info

global packages:

@ionic/cli-utils : 1.2.0
Cordova CLI      : 7.0.1
Ionic CLI        : 3.2.0

local packages:

@ionic/app-scripts              : 1.3.0
@ionic/cli-plugin-cordova       : 1.2.1
@ionic/cli-plugin-ionic-angular : 1.2.0
Cordova Platforms               : android 6.2.3
Ionic Framework                 : ionic-angular 3.0.1

System:

Node       : v6.10.3
OS         : Windows 10
Xcode      : not installed
ios-deploy : not installed
ios-sim    : not installed

Any help is appreciated.

Do you have the required files in /resources?

There is an android folder with two sub folders icon and splash. Both are empty. Is there a command to add the files or do I need to place them there manually.

I know they should be created when the project is generated but for some reason they are not.

This is how it should look like: https://github.com/driftyco/ionic2-app-base/tree/master/resources

1 Like

Ah simply dropping the resources folder into my project solved the issue. Thank you!

1 Like
  1. Save splash.png as 2732x2732
    and icon.png as 1024x1024

  2. ionic cordova resources --verbose

1 Like

i solved this issue by changing the extinction where it was like this :splash.PNG to splash.png all small litters