Neel Moradiya
Neel Moradiya

Reputation: 23

I am using flutter native splash package for splash screen in my app

It is working properly in all devices including web except android 12 devices. I tried too many ways to figure it out, but am not able to find solution. If anyone knows solution please reply as soon as possible.

The problem is in android 12 devices, logo which I have used isn't showing.In other devices it working perfectly.

Here I am attaching my pubspec.yaml dev_dependencies info:-

dev_dependencies:
flutter_test:
  sdk: flutter


  flutter_native_splash: ^2.2.3+1
  flutter_lints: ^2.0.0

flutter_native_splash:
  image: assets/images/splash.png
  color: "#23AA49"
  android: true
  android12: true
  ios: true

  android_12:
    image: assets/images/splash.png
    color: "#23AA49"

Upvotes: 2

Views: 1667

Answers (3)

Jay Limbani
Jay Limbani

Reputation: 189

Go to Your android->app when you noticed that build.gradle file just open it and. modify it it contains targetsdkversion and compilesdkversion aslo

click on this link you will show one image then modify your puspec.yamel file i have no such reputation so i can not embeded image in post right now after 10 i get that right so you have to click on this link

Upvotes: 0

Kratos
Kratos

Reputation: 11

Apps targeting Android 12 and higher are required to specify an explicit value for android:exported

Make these changes android:exported="true" Update targetSdkVersion and compileSdkVersion

you can refer to this https://developer.android.com/about/versions/12/migration

Hope this helps you

Upvotes: 1

Related Questions