Reputation: 23
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
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
Upvotes: 0
Reputation: 189
enter image description hereFollow this picture you can see build.gradle file go there and then follow second picture
search this potion of file and modified it as per my screenshot
then in same file modified this line also
Upvotes: 0
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