Getting "Failed to find target with hash string 'android-28' " error while running ionic cordova build android in ionic 3

I’m trying to build android apk using ionic but getting “Failed to find target with hash string ‘android-28’ in: /Users/system/Library/Android/sdk” error .

Tried many ways but issue not solved. Can anyone faced this issue?