Replies: 1 comment 2 replies
-
Unfortunately this isn't really possible. You could go back to cordova-android@10 which doesn't handle android splashscreens. This has 3 caveats, without the splashscreen plugin you won't have a splashscreen for old android devices. For Android 12 (That's the version that introduced splashscreens if i recall) and later, you will get a splashscreen. If splashscreens are not defined (which it won't be in cordova-android@10), the android OS will fallback to use your app icon, which may or may not look good. This splashscreen is enforced, and in cordova-android@10 it's not controllable, short of adding/modifying the native project yourself. The second caveat is without the splashscreen plugin, you won't have a JS api to control the splashscreen. If you include the splashscreen plugin, then on android 12+ you'll get double splashscreens (the plugin version and the OS native version). The third caveat is, cordova-android@10 will have difficulties targeting API 31+ to satisify google play deployment requirements. Onto your main issue, |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am getting the following error when I try to run my app on Android 9-11, even though it works on 12-13:
java.lang.RuntimeException: Unable to start activity ComponentInfo{appname/appname.MainActivity}: android.view.InflateException: Binary XML file line #24 in appname:layout/splash_screen_view: Failed to resolve attribute at index 0: TypedValue{t=0x2/d=0x7f0300ff a=-1}
I have used the advice from here:
https://stackoverflow.com/questions/73313620/ionic-android-12-splash-error-while-adding-cordova-android11/73399893
and here:
apache/cordova-android#1497
and some great info from Norman Breau on the Slack channel which got me to the point I could build a working app for Android 12+.
I've tried all kinds of config changes trying to get past the above error and nothing seems to make it better, only worse. At this point, I'd even gladly accept removing the splash screen on Android, just to get it to work on all versions again.
Please help.
AndroidManifest.xml:
config.xml.txt
themes.xml.txt
colors.xml.txt
Beta Was this translation helpful? Give feedback.
All reactions