breautek commented on issue #1680:
URL: 
https://github.com/apache/cordova-android/issues/1680#issuecomment-1789302975

   Assuming that you're using the latest cordova-android version, line 392 on 
`prepare.js` leads to: 
https://github.com/apache/cordova-android/blob/rel/12.0.1/lib/prepare.js#L392
   
   It's attempting to configure the splashscreen theme inside `themes.xml`. In 
a standard cordova project the `themes.xml` will be configured to extend 
android's splashscreen theme, a requirement to properly support the android 
splashscreen system and the theme will be named `Theme.App.SplashScreen`.
   
   If you don't have a theme named `Theme.App.SplashScreen` then I guess it 
will fail.
   
   I don't really have enough information to know your intent but the main app 
theme must be a splashscreen theme, otherwise splashscreen will not work 
properly and will fail during runtime.
   
   If you want to override/set the app theme, that theme should be specified 
using the 
[AndroidPostSplashScreenTheme](https://cordova.apache.org/docs/en/12.x/core/features/splashscreen/index.html#androidpostsplashscreentheme)
 preference. The theme specified here will be used once the splashscreen is 
dismissed.
   
   If a plugin or framework is defining a custom theme, then it should define 
that theme in another resource file other than `themes.xml` to avoid overriding 
the cordova theme for splashscreen support.


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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to