2
respostas

Cap. 1 - Ex. Configurando e executando o projeto no Windows

Fiz todo o procedimento de atualização pelo nuget e instalação dos SDK's Platform necessários, entretanto, aparecem esses erros listados abaixo quando vou buildar para Android:

1) Severity Code Description Project File Line Suppression State Error Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

2) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'colorPrimary'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

3) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'windowActionBar'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

4) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'colorPrimaryDark'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

5) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'windowNoTitle'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

6) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'colorAccent'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

7) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'windowActionModeOverlay'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

8) Severity Code Description Project File Line Suppression State Error Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.Dialog'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

9) Severity Code Description Project File Line Suppression State Error No resource found that matches the given name: attr 'colorAccent'. AluraNutricao.Droid C:\Xamarin\AluraNutricao\AluraNutricao\AluraNutricao.Droid\Resources\values\styles.xml

Alguém poderia me ajudar? Grato!

2 respostas

Olá, Marllon!

Você tem o pacote Xamarin.Android.Support.v7.AppCompat instalado?

1) Expanda a pasta Packages da solução

2) Localize o pacote Xamarin.Android.Support.v7.AppCompat

3) Se esse pacote existir, clique com botão direito do mouse nesse pacote e clique em Update

4) Se não existir, localize o pacote no NuGet e instale

O pacote existe, então tentei fazer a atualização do pacote, mas ocorre esse erro: Could not install package 'Xamarin.Android.Support.Compat 24.2.1'. You are trying to install this package into a project that targets 'MonoAndroid,Version=v6.0', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.