Skip to content
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

Error when adding AndroidWindowSplashScreenBrandingImage #1475

Closed
3 tasks done
fortunella opened this issue Aug 13, 2022 · 2 comments · Fixed by #1487
Closed
3 tasks done

Error when adding AndroidWindowSplashScreenBrandingImage #1475

fortunella opened this issue Aug 13, 2022 · 2 comments · Fixed by #1487

Comments

@fortunella
Copy link

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:

<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.

Command or Code

Environment, Platform, Device

Version information

cordova-android: 11.0.0

Checklist

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@expcapitaldev
Copy link

expcapitaldev commented Aug 17, 2022

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

@valid13
Copy link

valid13 commented Sep 5, 2022

Same issue here.
I removed AndroidWindowSplashScreenBrandingImage for now, but it's quite problematic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants