MissingDefaultResource errors after cordova update

#1

Hi there,

When I do a release build, I started getting the following error:

res/drawable-land-xxhdpi/screen.png: Error: The drawable “screen” in drawable-land-xxhdpi has no declaration in the base drawable folder or in a drawable-densitydpi folder; this can lead to crashes when the drawable is queried in a configuration that does not match this qualifier [MissingDefaultResource]

I get this error for several other resources at the config.xml

Has anybody started experiencing similar issues?

Ionic:

ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.1.2
@angular-devkit/build-angular : 0.13.7
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.7
@ionic/angular-toolkit : 1.4.1

Cordova:

cordova (Cordova CLI) : 9.0.0
Cordova Platforms : android 8.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 3.1.2, (and 6 other plugins)

Cheers,

Doug

#2

OK, when you add the default resource, the error message disappears. Such as the below:

<splash density="**xxhdpi**" src="resources/android/splash/drawable-land-xxhdpi-screen.png" />

I had the land-xxhdpi and port-xxhdpi in the initial config.xml

I am not sure what is going on but at least there seems to be a way to move forward…

Cheers,

Doug