Can't compile android project

I installed all the dependencies, I can run a regular Xamarin app without errors, but I can’t run the MonoGame app. When I try to compile a newly created or downloaded example android project, dotnet gives the following errors:

C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): err
or NETSDK1202: The "net6.0-android" workload is not supported and will not receive security updates.  More information about the support policy: https://aka.ms/maui-support-policy.  [C:\dev\AndroidXNATest\And
roidXNATest.csproj]
C:\Program Files\dotnet\sdk\8.0.200\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.EolTargetFrameworks.targets(38,5): err
or NETSDK1202: The "net6.0-android" workload is not supported and will not receive security updates.  More information about the support policy: https://aka.ms/maui-support-policy.  [C:\dev\AndroidXNATest\And
roidXNATest.csproj]

Application with DesktopGL runs fine.
Thank you in advance!

2 Likes

I hope someone helps you with this issue. I get the same error message, and have not been able to get my Android project to build, so I am stuck. The only thing I can think of is to totally uninstall Visual Studio, Monogame, and then start all over with a fresh install. Right now I can’t attend to that, so it will have to wait several weeks.

1 Like

Hi @vlad Welcome to the Community!

Have you tried asking over in the Discord community yet?

You may receive a faster response there.

Happy Coding!