Closed cookieguru closed 8 years ago
I tried moving the drawable-* folders to the repo root and same issue:
Position 33:23-37 : No resource found that matches the given name (at 'icon' with value '@drawable/icon').
The current folder configuration you are using will not work, since the paths are not correct. When specifying the icon paths they have to point to something relative to the repo root:
<platform name="android">
<icon src="resources/android/drawable-mdpi/ic_launcher.png" density="mdpi" />
<icon src="resources/android/drawable-hdpi/ic_launcher.png" density="hdpi" />
<icon src="resources/android/drawable-xhdpi/ic_launcher.png" density="xhdpi" />
<icon src="resources/android/drawable-xxhdpi/ic_launcher.png" density="xxhdpi" />
<icon src="resources/android/drawable-xxxhdpi/ic_launcher.png" density="xxxhdpi" />
</platform>
What this does is to replace the preexisting icon.png files in the respective density folders with the files given by you in the config.xml
.
That being said... The recommended approach is to put everything related to cordova inside the cordova
folder. eg. the referenced path resources/android/drawable-mdpi/ic_launcher.png
would actually be inside the cordova
folder (cordova/resources/android/drawable-mdpi/ic_launcher.png
) but in the config.xml
you would reference the files as stated above.
Awesome, that worked!
I changed some code in app.js which worked fine with the development app, then added icons in cookieguru/barcode-pusher@733037847b2e9e4d81714e1ec951ad28ca67b585 and now builds are failing.