We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Branding image is shown in the splash screen
Error during build of the project.
I migrated my app project to cordova-android 11 and got the splash screen working with the new API. Therefor I added these lines to config.xml:
<preference name="AndroidWindowSplashScreenAnimatedIcon" value="resources/android/splash-android.png" /> <preference name="AndroidWindowSplashScreenBackground" value="#FF0000" />
This works fine. I then wanted to add a branding image to the bottom of the splash screen with this setting:
<preference name="AndroidWindowSplashScreenBrandingImage" value="resources/android/brand-image.png" />
When I then build the project I get this error:
Execution failed for task ':app:processDebugResources'. > A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction > Android resource linking failed ERROR:/home/ralf/myAppBuild/platforms/android/app/build/intermediates/incremental/debug/mergeDebugResources/merged.dir/values/values.xml:2210: AAPT: error: style attribute 'attr/windowSplashScreenBrandingImage (aka de.foonax.myapp:attr/windowSplashScreenBrandingImage)' not found.
The specified image file exists at the specified location.
cordova-android: 11.0.0
The text was updated successfully, but these errors were encountered:
looks like error here: <resources> <style name="Theme.App.SplashScreen" parent="Theme.SplashScreen.IconBackground"> <item name="windowSplashScreenBackground">@color/cdv_splashscreen_background</item> <item name="windowSplashScreenAnimatedIcon">@drawable/ic_cdv_splashscreen</item> <item name="windowSplashScreenAnimationDuration">1000</item> <item name="postSplashScreenTheme">@style/Theme.AppCompat.NoActionBar</item> <item name="windowSplashScreenIconBackgroundColor">@color/cdv_splashscreen_icon_background</item> <item name="android:windowSplashScreenBrandingImage">@drawable/ic_cdv_splashscreen_branding</item> </style> </resources> because after cordova prepare I see windowSplashScreenBrandingImage not android:windowSplashScreenBrandingImage
<resources> <style name="Theme.App.SplashScreen" parent="Theme.SplashScreen.IconBackground"> <item name="windowSplashScreenBackground">@color/cdv_splashscreen_background</item> <item name="windowSplashScreenAnimatedIcon">@drawable/ic_cdv_splashscreen</item> <item name="windowSplashScreenAnimationDuration">1000</item> <item name="postSplashScreenTheme">@style/Theme.AppCompat.NoActionBar</item> <item name="windowSplashScreenIconBackgroundColor">@color/cdv_splashscreen_icon_background</item> <item name="android:windowSplashScreenBrandingImage">@drawable/ic_cdv_splashscreen_branding</item> </style> </resources>
Sorry, something went wrong.
Same issue here. I removed AndroidWindowSplashScreenBrandingImage for now, but it's quite problematic.
Successfully merging a pull request may close this issue.
Bug Report
Problem
What is expected to happen?
Branding image is shown in the splash screen
What does actually happen?
Error during build of the project.
Information
I migrated my app project to cordova-android 11 and got the splash screen working with the new API. Therefor I added these lines to config.xml:
This works fine. I then wanted to add a branding image to the bottom of the splash screen with this setting:
When I then build the project I get this error:
The specified image file exists at the specified location.
Command or Code
Environment, Platform, Device
Version information
cordova-android: 11.0.0
Checklist
The text was updated successfully, but these errors were encountered: