Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Migrate Xamarin.Android Projects whose min-sdk is 19? #2244

Open
CarlosACepeda opened this issue May 7, 2024 · 2 comments
Open

How to Migrate Xamarin.Android Projects whose min-sdk is 19? #2244

CarlosACepeda opened this issue May 7, 2024 · 2 comments
Labels
dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 product-question Product usage related questions [org]

Comments

@CarlosACepeda
Copy link

Type of issue

Missing information

Description

So, I was trying to follow the tutorial to migrate my app to .NET Maui from a Xamarin.Android app
but to my surprise apparently Android KitKat isn't supported, and this API Level is being used by an important chunk of devices that are using my app,
so, I guess in the documentation this should be mentioned or providing an alternative solution for this case,
thank you!
and I'm trapped because I wanted to give support to API Level 34 but my Xamarin.Android project doesn't allow it, it only allows it to API Level 33
What would be the options for this case?

Page URL

https://learn.microsoft.com/en-us/dotnet/maui/migration/native-projects?view=net-maui-8.0

Content source URL

https://github.com/dotnet/docs-maui/blob/main/docs/migration/native-projects.md

Document Version Independent Id

56709a6f-c958-f4ce-1c74-65e20b384611

Article author

@davidbritch

Metadata

  • ID: 56709a6f-c958-f4ce-1c74-65e20b384611
  • Service: dotnet-mobile
  • Sub-service: dotnet-maui
@dotnet-bot dotnet-bot added the ⌚ Not Triaged Not triaged label May 7, 2024
@issues-automation issues-automation bot added dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 labels May 7, 2024
@davidbritch davidbritch added the product-question Product usage related questions [org] label May 10, 2024
@dotnet-bot dotnet-bot removed the ⌚ Not Triaged Not triaged label May 10, 2024
@davidbritch
Copy link
Contributor

The .NET for Android minimum version is Android 5.0 (API 21).

For targeting API 34 features, that shipped a while ago for .NET for Android (https://github.com/xamarin/xamarin-android/releases/tag/34.0.95) so file a bug report if you're having issues there.

Remaining with Xamarin.Android, while unsupported, you can continue to target API 19 and build with API 34 in order to be Play Store compliant. New features in API 34 may not be part of that SDK binding (hence you need to use .NET for Android instead). See the support policy at https://dotnet.microsoft.com/en-us/platform/support/policy/xamarin

@CarlosACepeda
Copy link
Author

CarlosACepeda commented May 11, 2024

Thank you, I will try to give support using Xamarin Android for the time being, but as for the document, I really think this should be mentioned, to avoid following a tutorial that will fail in cases like mine! that probably I'm not the first or last one that will come across this issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dotnet-maui/subsvc dotnet-mobile/svc Pri1 High priority, do before Pri2 and Pri3 product-question Product usage related questions [org]
Projects
None yet
Development

No branches or pull requests

3 participants