You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run flutter pub run flutter_native_splash:create I get the following android/app/src/main/res/drawable/launch_background.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="@color/splash_color" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
<item>
<bitmap android:gravity="fill" android:src="@drawable/splash" />
</item>
</layer-list>
But the file android/app/src/main/res/drawable-v21/launch_background.xml is not updated. It looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!-- Modify this file to customize your launch splash screen -->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:drawable="?android:colorBackground" />
<!-- You can insert your own image assets here -->
<!-- <item>
<bitmap
android:gravity="center"
android:src="@mipmap/launch_image" />
</item> -->
</layer-list>
When I start my app on Android 21, it crashes immediately. If I manually replace the xml file in drawable_v21 with the one in drawable, the app works.
Does flutter_native_splash not support Android 21?
The text was updated successfully, but these errors were encountered:
I am using flutter_native_splash: ^0.1.9 with the following in pubspec.yaml:
When I run flutter pub run flutter_native_splash:create I get the following android/app/src/main/res/drawable/launch_background.xml
But the file android/app/src/main/res/drawable-v21/launch_background.xml is not updated. It looks like this:
When I start my app on Android 21, it crashes immediately. If I manually replace the xml file in drawable_v21 with the one in drawable, the app works.
Does flutter_native_splash not support Android 21?
The text was updated successfully, but these errors were encountered: