Reputation: 1750
After upading cordova and my project from 6.3.1 to 6.4.0, when I build the Android version, it generates the res folder with splash screens and icons files, at top level of the project, instead of at platforms/android/res where it should. Thus my app has the default cordova icons and splash screens instead of mine.
Is this a bug in the new Cordova version? Does anyone know of a setting that could prevent this? It was working ok when I used 6.3.1 .
Thanks.
Upvotes: 7
Views: 2953
Reputation: 2165
This issue is solved in cordova-android 6.1.0
but if you try cordova platform update android
at this moment doesn't update to 6.1.0
.
Run
cordova platform update [email protected] --save
cordova platform rm android
cordova platform add android
to solve this issue.
Some people seem to still have the issue after the command above... Try:
cordova platform update [email protected] --save
cordova platform rm android
cordova platform add android
You can also try: android@latest ....
Also try: ionic resources --icon
I'm using that version and it works, let me know if it solved the problem...
Upvotes: 11
Reputation: 1382
after updating to cordova 6.4.0
cordova platform update [email protected] --save cordova platform rm android cordova platform add android
did not fix the issue for me, I had to manually copy the resources from res to android/res
Upvotes: 3