Solved: Error aapt.exe exited with code 1 Build Error in Android

Hi , during my android development I faced this error more than one time so I decided to help anyone who may face it too.

When you see this error make sure to do the following :

1- Check the last resources that you have added or modified (Layouts and Images mainly) and make sure that their naming is correct (Remove any spaces or dashes you have in the name) and that they have a valid extension.

2- Change the Build Output from minimal to Normal(Go to Tools -> Options -> Projects and Solutions -> Build and Run).

3- Check the output tab in Visual Studio. You can find a message like

res\drawable\incompletestatus .png: Invalid file name: must contain only [a-z0-9_.]

Show Comments