34.0 is not a valid TargetPlatformVersion for Android. Valid versions include: 35.0

Kim Strasser 1,036 Reputation points
2024-11-19T09:41:03.52+00:00

I changed the Target framework in my Android project properties from .NET 8.0 to .NET 9.0.

But then I get this error:

34.0 is not a valid TargetPlatformVersion for Android. Valid versions include: 35.0

Screenshot 2024-11-19 102241

Is it necessary to change the Target OS version to 35.0?

In addition, is it necessary to change the targetSdkVersion in AndroidManifest.xml to 35?

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="2.6" android:versionCode="26">
	<uses-sdk android:minSdkVersion="31" android:targetSdkVersion="34" />

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,630 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.