I am getting error while building the sample maui application using vs2022

Seema CHAUDHARY 0 Reputation points
2025-02-26T15:39:09.22+00:00

I am facing below errors

resource style/Animation.AppCompat.Dialog (aka com.companyname.mauiapp1:style/Animation.AppCompat.Dialog) not found. f

resource style/RtlOverlay.DialogWindowTitle.AppCompat (aka com.companyname.mauiapp1:style/RtlOverlay.DialogWindowTitle.AppCompat) not found.

resource attr/colorPrimary (aka com.companyname.mauiapp1:attr/colorPrimary) not found.

resource attr/actionBarSize (aka com.companyname.mauiapp1:attr/actionBarSize) not found.

resource attr/dialogPreferredPadding (aka com.companyname.mauiapp1:attr/dialogPreferredPadding) not found.

resource attr/dialogPreferredPadding (aka com.companyname.mauiapp1:attr/dialogPreferredPadding) not found.

resource dimen/abc_dialog_padding_top_material (aka com.companyname.mauiapp1:dimen/abc_dialog_padding_top_material) not found.

style attribute 'attr/fontFamily (aka com.companyname.mauiapp1:attr/fontFamily)' not found.

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

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 48,666 Reputation points Microsoft Vendor
    2025-02-27T07:04:32.9833333+00:00

    Hello,

    Thanks for your feedback.

    According to your description, the root cause of the problem is not that the configuration entry of the Maui application is wrong, but that some problems occurred in Visual Studio that prevented it from compiling.

    For problems with Visual Studio, it is recommended that you post them to Visual Studio Feedback.

    Best Regards,

    Alec Liu.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.