A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hi @Jonathan ,
I checked this using a default .NET MAUI project. If your project is a .NET MAUI project, you may not find the minSdkVersion setting directly in the Visual Studio UI.
In a MAUI project, the Android manifest file is located here:
Platforms/Android/AndroidManifest.xml
Please open that file directly using Visual Studio or any text editor, then manually add the uses-sdk line inside the <manifest> element.
For example:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<application android:allowBackup="true" android:icon="@mipmap/appicon"
android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-sdk android:minSdkVersion="21" />
</manifest>
You can replace 21 with the minimum Android API level required by your application.
The Visual Studio Android manifest editor may show options such as application name, package name, version, icon, theme, install location, and permissions, but it may not show the minSdkVersion field for a .NET MAUI project.
Hope this helps! If my explanation and the information I provided were helpful, I would greatly appreciate it if you could follow the instructions here so others with the same problem can benefit as well.