Forum Discussion
The type or namespace name 'MauiAppCompatActivity' could not be found
I have just installed Visual Studio 2022 Preview today (March 1st, 2022) and tried to create a Maui Blazor project. Using the default install and template, compiling gives the above error.
It also gives errors on the namespace 'Android" not being found. Guessing that it could be an NDK issue, I could not find the location to specify the Android NDK in the Options.
I would appreciate if anyone can point me in the right direction. Thank you in advance.
2 Replies
- tanzilhasanCopper Contributor
Hello Andrew3128 ! i am having the same problem. if you had figured out any solution, please tell us how did you fixed it
- MBailey1205Copper Contributor
Andrew3128 Hi Andrew. Did you ever figure this out? I am having the same issue let me know as soon as you can if you have an answer. Thanks.
[Edit]
I should clarify. I am having this issue after converting a project from .NET MAUI 7 to 8.