Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin – Error Fixing “The Aapt task failed unexpectedly”

I am facing issue when i re build or build my droid project. I have updated my Android SDK but issue still is in my solution. Please suggest me how to remove this issue.
enter image description here

I have tried many solution which are on google but issue still come up.

like image 944
Mukesh Kumar Avatar asked Oct 28 '15 08:10

Mukesh Kumar


2 Answers

For me, giving 2.1 in Version Number property of the Project Properties gave this error. So after changing it to 2, the project built successfully. highlighted error

like image 165
Rakesh Androtula Avatar answered Oct 03 '22 21:10

Rakesh Androtula


As referring to above mentioned Post by Milen Pavlov i.e :
https://forums.xamarin.com/discussion/39861/latest-update-aapt-task-failed-unexpectedly.

It looks that your Droid CS.Proj containing two references of a same file. So, open it on Notepad and identify the duplicate reference carefully and remove that.

OR

If you have any recent backup of your project then you can Compare Droid CS.Proj with existing Droid CS.Proj to filter new changes and then identify duplicate reference.

like image 22
Ajay Sharma Avatar answered Oct 03 '22 21:10

Ajay Sharma