-
Notifications
You must be signed in to change notification settings - Fork 106
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
Lack of the default/fallback resources in config.xml for Android triggers MissingDefaultResource issue #46
Comments
Thanks for opening an issue for this! For stuff like this we're dependent on Cordova. We don't want to generate undocumented config that may work today that Cordova then changes later. It looks like neither the splashscreen plugin or cordova-android maintainers have an official response yet. I'm subscribed to those two issues and the PR and will wait to see what happens. |
bump same issue, I also have a white screen when I build my app with --release flag..
But nothing to see on the phone.. Can this be because of these errors? |
@pieter-janDB I had the same issue. First, to get rid of the errors, see the solution given by @ryaa. Then, to fix the white screen, here is the solution that worked for me: |
These errors are not raised if we build an .aab package, instead of .apk. |
Looks like a Cordova specific issue. As we're dropping Cordova support in 1.0 I am going to close unless this also impacts Capacitor. Thanks for the issue. |
I am seeing this same error in my Capacitor project (which was upgraded from Cordova).
Seems like we need either Possibly, rather than specifying -port and -land, only -land could be specified, and the -land folders could become the default/fallback? Unless there's another way around this, or I have something wonky because it's an upgraded Cordova app maybe?
|
When generating images for Android the cordova-res tool also registers the generated images in config.xml however it registers them for portrait and landscape orientation only. When creating a production build (using ionic cordova build android --release --prod) for android, android lint checks errors will be thrown because no defaults (In this case, without port- or land- ) as a fallback is provided. The errors are as below
Not sure if this tool should add these default/fallback or provide details in README how to fix these errors. Right now, the user gets the errors during the build after images are generated/registered in config.xml
To fix the errors I manually added the below
Please also see discussion here apache/cordova-plugin-splashscreen#228 and apache/cordova-android#689 and apache/cordova-plugin-splashscreen#185
The text was updated successfully, but these errors were encountered: