'.NET Maui Project Template Errors - The type or namespace name 'Android' could not be found
I'm trying to start a new .net Maui project. I have added no code whatsoever to the starting project template.
Microsoft Visual Studio Community 2022 (64-bit) Preview Version 17.2.0 Preview 5.0 .NET Framework 4.7.2
Steps to reproduce:
- Choose New Project, select .NET Maui App (Preview)
- Name the project, click Create.
- Open the file Platforms/Android/MainActivity.cs
As soon as this file is opened 15 errors show up starting with "The type or namespace name 'Android' could not be found." Although the project will successfully build, these errors never disappear. When real errors occur during a build, this makes it very difficult to continue.
I have tried cleaning the project with no luck.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
