-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cordova 9.0 cordova build --release error not match this qualifier [MissingDefaultResource] #214
Comments
Please don't just delete parts of the issue template - it is important that we know all the versions you are using etc. Is this reproducible in a new, plain Cordova app? A minimal reproduction repository would really help to debug and later fix this issue. More information on how to create one: https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md |
Bug ReportProblemWhat is expected to happen?cordova 9.0 cordova build --release What does actually happen?update Android cordova 9.0 cordova build --release error , but cordova build ok Information[wen@localhost chezixiang]$ cordova build --release
Explanation for issues of type "MissingDefaultResource": As a special case, drawables do not have to be specified in the base There may be scenarios where you have a resource, such as a -fr drawable, (This scenario frequently happens with string translations, where you might 4 errors, 0 warnings
BUILD SUCCESSFUL in 2s Command or Codeconfig.xml preference name="Orientation" value="portrait" /> Environment, Platform, Deviceenvironment : Android Version informationCordova version (cordova -v):9.0.0 (cordova-lib@9.0.1) Cordova platform version (cordova platform ls): $cordova plugin list Other Frameworks: Eclipse edit, Teminal build Checklist
|
Any news on this? I am having the same error in same context |
Try this config lines:
Read this apache/cordova-android#689 |
Any solution for this cordova build --release error not match the src in the config.xml file ? same error in the same context. @phipier @Overman775 @janpio |
I had the same issue. Here's how I made the error go away. Originally I had the following within <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: <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 avoid that the app defaults to this uncertain configuration I added these new 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 for pointing in the right direction. |
work for me |
Bug Report
Problem
What is expected to happen?
What does actually happen?
update Android cordova 9.0 cordova build --release error , but cordova build ok
config.xml
Checklist
The text was updated successfully, but these errors were encountered: