Do I need to specify Target Android Framework in Maui?

현명 지 1 Reputation point
2023-08-25T07:09:44.04+00:00

I am developing an Android app with Maui (.net7). Do I need to specify the Target Android Framework?

I wonder if the Target Android Framework version of this menu is android:targetSdkVersion in AndroidManifest.xml.

User's image

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,829 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Leo Wagner de Souza 691 Reputation points
    2023-08-26T16:50:47.1333333+00:00

    Hello!

    Yes, you do need to inform.
    That's how the compiler maps the target Android API, to define the functions and methods that will be available.

    You can learn more at:

    https://learn.microsoft.com/en-us/dotnet/maui/platform-integration/configure-multi-targeting

    0 comments No comments