EDIT: this error should be fixed now if you are upgrading to Visual Studio version 15.5.2 https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes#15.5.2 "Release Date : December 14, 2017 - Visual Studio 2017 version 15.5.2 version. The best releases fixed in this version. These are the problems reported by clients in this release:
The Xamarin Android project cannot be created because R $ anim.class is used.
Short answer
1- Open the task manager and run the operation MSBuild.exe.
2- If 1 did not work, close and reopen Visual Studio 2a. Also make sure you close the emulator. (Change)
The longer answer is
Ive sometimes started getting the same build errors as some of the variations "The Xamarin Android project cannot be created because R $ anim.class is used"
I look at it, and it looks like this is a fairly recent problem that they encountered after the release of Xamarin Android 15.5. Heres is a link to the stream where an error is reported and actively processed. As of the time of this email, a fix has not yet been clicked, but there is a quick fix that worked for me. https://developercommunity.visualstudio.com/content/problem/155693/xamarin-android-project-cannot-build-because-ranim.html
It seems that the problem is somehow related to MSBuild processes. Open the task manager and run the MSBuild.exe operation.
After that, perhaps clean and rebuilt, the android emulator seems to work. If that doesn't work, closing and reopening VS seems to do the trick. But first I will try the task manager, this may be a faster way to fix the error.
Edit - I also close the emulator while I run my visual studio. I may be wrong about this, but it looks like it continues to make additional instances of MSbuild.exe and needs a good close and restart.
Tim
source share