Archive for October, 2015

How to solve the issues when building Xamarin solution for Android on Mac

If you are working with Xamarin Studio then you surely had issues building the solution for Android sometimes,  this post and this post can be useful to help solving that issues.

If these advices didn’t help to you and you still failing to build your solution then try to perform some more steps to clear Xamarin caches before applying the changes in the posts mentioned above:

  1. Clean the solution in Xamarin and leave it
  2. Delete all the ‘bin’ & ‘obj’ folders together with their content from your projects
  3. Delete all the content from the folder “~/local/share/Xamarin”

Enjoy

, , ,

Leave a comment

Reference ‘Xamarin.Android.Support.v4’ not resolved

I killed some days to get rid from the error in the topic, it happened when I tried to compile the app for Android, finally I found a way how to solve it, quick manual:

  1. Select Build -> Clean All in your Xamarin project where you have the issue
  2. Close your Xamarin project
  3. Exit from Xamarin Studio
  4. Go to your project in the file system, find the the folder “packages” delete the folder “Xamarin.Android.Support.v4.*” from there and everything what is inside
  5. Go to your Android project, find there the file “package.config”
  6. Find the line where “Xamarin.Android.Support.v4.*” is mentioned and delete this line
  7. Start Xamarin Studio, load your project
  8. Go to Android part of the project, right click on the “Packages” folder and select menu item “Add packages..”
  9. Find in the repository the package “Xamarin.Android.Support.v4” and install it again
  10. Try to build Android project again
  11. Enjoy, now everything should work again.

, , , ,

1 Comment

Xamarin Studio: error retrieving update information (Mac)

If Xamarin Studio does not want to update itself anymore on your Mac, just do the following:

  1. Start Xamarin Studio
  2. Go to menu item Xamarin Studio -> Account
  3. Logout
  4. Login

Usually it should help

,

Leave a comment

How to reset local git repository

If you need to reset local git repository, it cannot be done with “git pull”, the following git command should be used:

git fetch --all
git reset --hard origin/master

Pay attention to the fact that all your local changes will be disregarded. Change “master” to the branch you need, if it is required.

, , , ,

Leave a comment