Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cordova Android 6.4.0 creates res folder top level not inside platforms android

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.

like image 971
Vero Avatar asked Oct 31 '16 22:10

Vero


2 Answers

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...

like image 105
Rodrigo Graça Avatar answered Nov 15 '22 00:11

Rodrigo Graça


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

like image 25
IanO.S. Avatar answered Nov 14 '22 23:11

IanO.S.