You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/20 00:17:44 UTC

[GitHub] [cordova-plugin-splashscreen] RafaelLVX commented on issue #214: cordova 9.0 cordova build --release error not match this qualifier [MissingDefaultResource]

RafaelLVX commented on issue #214: cordova 9.0  cordova build --release error  not match this qualifier [MissingDefaultResource]
URL: https://github.com/apache/cordova-plugin-splashscreen/issues/214#issuecomment-555776362
 
 
   I had the same issue. Here's how I made the error go away.
   
   Originally I had the following within <platform name="android"> ... </platform> in config.xml:
   
   ```XML
           <splash density="land-hdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-ldpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-mdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-xhdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="port-hdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-ldpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-mdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-xhdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
   ```
   
   Note how I actually use one file for all portrait resolutions and one for all landscape resolutions. For me lower resolutions don't matter so I only used the high resolution file and prayed it wouldn't trouble me later (so far it hadn't but I couldn't test on that many devices). Either way, you'll see where I'm getting.
   
   What solved the problem for me was adding lines with densities that don't specify orientation, thusly:
   
   ```XML
           <splash density="hdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="ldpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="mdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="xhdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="land-hdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-ldpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-mdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="land-xhdpi" src="res/screen/android/RafaelLVX-splashscreen-ls.png" />
           <splash density="port-hdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-ldpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-mdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
           <splash density="port-xhdpi" src="res/screen/android/RafaelLVX-splashscreen.png" />
   ```
   
   Now note I used the portrait orientation files for these no-orientation-densities. In truth I don't know if that matters, I don't know what circumstances will fall back to these paths. Maybe the files should be square here? I don't know. Hoping to make it harder to try to use this uncertain configuration as default I added these lines BEFORE the tried and true landscape and portrait config. All I know is that it worked. If anyone knows more, please let us know what I did right and how to improve this. ;-)
   
   Thanks @apiaget in [this post](https://github.com/apache/cordova-android/issues/689#issuecomment-473992821) for pointing in the right direction.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org