dotnet / android

.NET for Android provides open-source bindings of the Android SDK for use with .NET managed languages such as C#
MIT License
1.94k stars 533 forks source link

Getting white screen on Android 14 devices, The SDK target version is 34. #8689

Closed sujeetulli closed 6 months ago

sujeetulli commented 10 months ago

Android application type

Classic Xamarin.Android (MonoAndroid13.0, etc.)

Affected platform version

Android Target version 14

Description

Xamarin Support for Android 14 Ref, I have updated based on this.

Steps to Reproduce

Create a new project and target version Android 14 and run this in android 14 device and you will be getting a white screen.

Did you find any workaround?

No response

Relevant log output

No response

jonpryor commented 10 months ago

Classic Xamarin.Android does not, and will not, have bindings for Android 14 / API-34. If you need to use new types and methods introduced in API-34, you need to use .NET 8.

Classic Xamarin.Android apps can target API-34, in that the //uses-sdk/@android:targetSdkVersion attribute within AndroidManifest.xml can be set to 34, which we assume will be required for new app submissions around 2024-August. Such apps are still limited to only using types and members that exist in Android 13 / API-33. (We are not aware of any types or members introduced in API-34 which are required to set //uses-sdk/@android:targetSdkVersion to 34.)

See also:

grendello commented 10 months ago

@sujeetulli what OS/IDE did you create your project on?

gmck commented 10 months ago

@sujeetulli Re your white screen. Has your app implemented a splash screen using Xamarin.AndroidX.Core.SplashScreen?

sujeetulli commented 10 months ago

@sujeetulli what OS/IDE did you create your project on?

Mac/VS for Mac

grendello commented 8 months ago

@sujeetulli can you attach the test project that fails to work for you? I can't reproduce the problem. Also, please check whether the same behavior occurs on an Android 14 emulator, thanks!

sujeetulli commented 8 months ago

thank you all for your reply... I will update you shortly...

jpobst commented 6 months ago

With support for Classic Xamarin.Android ended May 1st, 2024, this issue is likely no longer relevant.

If this still persists in .NET 8+, please open a new issue with updated information based on net8.0-android or greater. Please include a link to this issue for context.