I am using visual studio 2015 update 2 community version to build Xamarin Applications. When I add a new nuget package or update my existing packages the aapt.exe process turns on which uses 100% of the CPU. It keeps me waiting for ages to complete the nuget package installation. Any one facing the same problem. Solutions to this are highly appreciated.
Open your Android project file in your text editor of choice and add the following to the main PropertyGroup, Debug configuration:
<AndroidResgenExtraArgs>--no-crunch</AndroidResgenExtraArgs>
The the aapt.exe process is trying to crunch (process) all of your image (png) files whenever you add a new nuget package or component.
Open your project in a text editor and add:
<AndroidExplicitCrunch>true</AndroidExplicitCrunch>
to the property group for the debug configuration(s).
This will make the build system cache the files generated by aapt so that in future it will only be run on files which have changed. The first build after adding this will still be really slow while the cache is built, but subsequent builds should be much faster. This should also be true for runs of aapt triggered by changing resource files etc. they should also use the cache and be faster.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With