- Right-click the Solution Name at the top of the folder structure and select Properties
- Click the Configuration Properties tab
- Select the checkboxes for Build and Deploy at the project that causes the error Message
If you see something like
Please install package: 'Xamarin.Android.Support.v4' available in SDK installer. Java library file ...\AppData\Local\Xamarin\Xamarin.Android.Support.v4\23.3.0.0\content\libs/internal_impl-23.3.0.jar doesn't exist.
Please install package: 'Xamarin.Android.Support.Vector.Drawable' available in SDK installer. Android resource directory ...\AppData\Local\Xamarin\Xamarin.Android.Support.Vector.Drawable\23.3.0.0\content\./ doesn't exist.
Please install package: 'Xamarin.Android.Support.v7.RecyclerView' available in SDK installer. Android resource directory ...\AppData\Local\Xamarin\Xamarin.Android.Support.v7.RecyclerView\23.3.0.0\content\./ doesn't
or
...\Resources\values\styles.xml
error APT0000: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
error APT0000: No resource found that matches the given name: attr 'colorAccent'.
error APT0000: No resource found that matches the given name: attr 'colorPrimary'.
right-click the Android project and select Clean then Rebuild.
If this does not fix the problem:
- Close Visual Studio / Xamarin Studio
- Open the folder where your Android project lies and delete the
obj
andbin
folder - Open the folder where your
.sln
file andpackages
lies and delete thepackages folder
- Go to the
%UserProfile%\.nuget\packages\
folder (Windows) or~/.nuget/packages
folder (Mac) and delete allXamarin.Android.*
folders - Go to the
%UserProfile%\AppData\Local\Xamarin
folder (Windows) or~/.local/share/NuGet/Cache
folder (Mac) and delete allXamarin.Android.*
folders and thezips
folder - Reopen Visual Studio / Xamrin Studio, right-click your Solution and select Rebuild Solution
- Wait until it has finished and do not cancel the package restore or build