resource style/Theme.MaterialComponents.Light.DarkActionBar not found

Shay Wilner 1,746 Reputation points
2023-04-03T21:33:50.9633333+00:00

Hello I updated the visual studio 2022 to Version 17.5.3 In platform xamarin android ,i created an android application projects. Because i didn't see the style xml file in values folder so i add it from another projects but now i get this error Error APT226 resource style/Theme.MaterialComponents.Light.DarkActionBar (aka com.kkk.project1:style/Theme.MaterialComponents.Light.DarkActionBar) not found project C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Aapt2.targets 156 Thanks

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,377 questions
{count} votes

Accepted answer
  1. Alessandro Caliaro 4,191 Reputation points
    2023-04-04T04:32:39.1533333+00:00

    Maybe you have to install the correct nuget package in the android project. Take a look to the other project which nugets you have in the android side

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.