Skip to content

Latest commit

 

History

History

Troubleshooting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Troubleshooting

Error Message: The project needs to be deployed before it can be started

  1. Right-click the Solution Name at the top of the folder structure and select Properties
  2. Click the Configuration Properties tab
  3. Select the checkboxes for Build and Deploy at the project that causes the error Message

Xamarin.Android package errors

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:

  1. Close Visual Studio / Xamarin Studio
  2. Open the folder where your Android project lies and delete the obj and bin folder
  3. Open the folder where your .sln file and packages lies and delete the packages folder
  4. Go to the %UserProfile%\.nuget\packages\ folder (Windows) or ~/.nuget/packages folder (Mac) and delete all Xamarin.Android.* folders
  5. Go to the %UserProfile%\AppData\Local\Xamarin folder (Windows) or ~/.local/share/NuGet/Cache folder (Mac) and delete all Xamarin.Android.* folders and the zips folder
  6. Reopen Visual Studio / Xamrin Studio, right-click your Solution and select Rebuild Solution
  7. Wait until it has finished and do not cancel the package restore or build