title: Can't resolve R aapt.exe finished with non-zero exit value 1 and many other such errors
body: <p>I am getting a cannot resolve symbol issue. Sometimes on <code>R</code> and sometimes on <code>ViewPager</code>.</p>
  
  <p>I am trying to use fragments for swiping screens and I have followed a solution from <a href="https://stackoverflow.com/questions/14965124/how-to-change-activity-with-left-right-swipe">How to change activity with left-right swipe</a>.</p>
  
  <p>I do not know what is wrong with Android Studio or with my project. It is giving errors whenever I build it.</p>
  
  <p><a href="https://i.stack.imgur.com/bTL1p.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bTL1p.png" alt="errors"></a></p>
  
  <p><a href="https://i.stack.imgur.com/3XV0E.png" rel="nofollow noreferrer">exact error</a></p>