Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png angularjs angularjs

Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png


I had the same error, After running

ionic resources

Or

ionic cordova resources

(Based on the ionic version of your application)

it went away.

The problem was that I had Windows-style slashes (backslashes) in the path of the icon, i.e. the error I had was this:

Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png

So, converting backslashes into slashes resolved it for me.

Hope this help to you and the others looking for same problem. It all happens because using different machines[mac & windows] for development of project like mac and windows.


You can add your resources again by running:

ionic integrations enable cordova --add


The problem is because you have:

<preference name="Orientation" value="portrait" />

in your config.xml, and when you run ionic cordova resources it is only generating the resources for portrait orientation.