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"
CodePudding user response:
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
CodePudding user response:
Go to Your android->app when you noticed that build.gradle file just open it and. modify it it contains targetsdkversion and compilesdkversion aslo