A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Hello @Sreenivasan, Sreejith ,
Thanks for your question.
It is possible to target Android API level 35 while staying on .NET 8. Below are the workarounds I recommend:
Workaround 1 - You can target Android 35 while staying on .NET 8 using a manual manifest override.
Note:
This workaround allows you to TARGET Android 35 (satisfy Google Play requirements) but you cannot use new Android 35 APIs from C# code. For full Android 35 API support, use Workaround 2 (upgrade to .NET 10).
1.Keep your project settings as is:
- Target Framework: net8.0-android
- Target Android Framework: API 34 (in dropdown)
- Add or modify
AndroidManifest.xmlin your project:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-sdk android:targetSdkVersion="35" />
<application android:allowBackup="true" android:icon="@mipmap/appicon" android:roundIcon="@mipmap/appicon_round" android:supportsRtl="true"></application>
</manifest>
- Build your app: you may see this warning and it is safe to ignore.
warning XA1008: The TargetFrameworkVersion (Android API level 34) is lower than the targetSdkVersion (35).
Workaround 2: This is a long-term recommendation, as Maui on .net 8 went out of support on May 14, 2025. In the future, you may face many issues because this version is no longer supported. Additionally, .NET 9 will go out of support on May 12, 2026. Upgrading to .NET 10 (LTS) ensures longer support until May 2027.
To move a .NET MAUI app from .NET 8 TO .NET 10, I would recommend these steps:
- Make sure Visual Studio has .NET 10 and the MAUI workload installed.
- Update each project file from
net8.0-*tonet10.0-*. - Update any MAUI-related NuGet packages, if you reference them explicitly.
- Delete the bin and obj folders. Restore and rebuild the solution.
- Fix any warnings or breaking changes that appear after the rebuild.
The main project-file change is usually just the target frameworks. For example:
<TargetFrameworks>net10.0-android;net10.0-ios;net10.0-maccatalyst</TargetFrameworks>
<TargetFrameworks Condition="$([MSBuild]::IsOSPlatform('windows'))">$(TargetFrameworks);net10.0-windows10.0.19041.0</TargetFrameworks>
If your app uses platform-specific features, there are a few things worth checking after the upgrade:
- Deprecated MAUI APIs such as older animation methods and older UI types.
- Android settings, because .NET 10 moves forward with newer Android tooling.
- iOS/Mac Catalyst build requirements, especially if you build with a Mac.
- Trimming or AOT settings, if your project already uses them.
If the app builds cleanly after changing the target frameworks, the move can be fairly small. If it does not, the build errors usually point to the exact API changes that need attention.
I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.