i saw a few posts like in the past - but none of the answers worked for me(like this one : failed to find target with hash string 'android-22'). i got this probelm in my build.grandle
failed to find target with hash string 'android-22'
Screenshot of the problem:
SDK manager: