I've been banging my head against the wall for the last few days trying to figure this out.
Here is whats happening:
- Anytime I open the project VS hangs responding every once in a while for a click I made a minute or so before. While you watch task manager you see that AAPT.exe is popping up every few seconds and running for a moment, after about 3-5 minutes it completes whatever it is doing and vs starts working again until I do one of the other things that sets it off.
- Same thing when I clean the project.
- Same thing when I build/rebuild the project.
- When debugging to a physical device it will build and deploy to the device, then hang with the same issue for a few minutes before starting the debug
What I have discovered:
This issue could possibly be related to this bug report https://bugzilla.xamarin.com/show_bug.cgi?id=43081 however following the instructions provided on that don't help and only cause more errors.
It seems that aapt is crunching my pngs and that is causing the hang, however I only have a few small icons in terms of images in the entire project, nothing that should take 2-3 minutes to compress.
What I have tried:
- Update all android sdks and resources to the latest available.
- Update java(64bit) and removed all other instances of it besides the newest one
- Removed and reinstalled all android resources.
- Repaired Visual Studio(community 2015)
- Nuked VS with https://github.com/Microsoft/VisualStudioUninstaller/releases
- Attempted to install VS 2017 community however it never functioned with the error CLR20r3 from mscorlib 4.6.1 with the error being 'remoteHostService.servicehub.service.json' could not be found(I checked it existed where it should be, and it referenced VsixServiceDiscovery: A procedure imported by 'Microsoft.VisualStudio.Settings.15.0.dll' could not be loaded. (I unfortunately dont have the full trace anymore I got rid of 17)
- After all that I reinstalled vs 15, which I got working(barely) but it still has the exact same issue as when I started.
At this point my next step is to nuke my computer completely, which I don't really want to do, so I'm desperately hoping that someone knows how to fix this.