Android studio build fail

i am facing this issue every time I start new project . how to resolve this issue

Hi @ekansh, I had the same problem few days ago and I did this to fix this problem:

  1. Changed compileSdkVersion to 27
  2. changed appcompat-v7 to 27.1.1
    Shown in the image
1 Like

Thank you @niteshbisht26 for answer, i am also doing this but i want permanent fix for this issue.

Yeah, I also need a permanent fix!
TAs please help!!

add to dependencies of your gradle module this line

implementation ‘com.android.support:support-annotations:27.1.1’

and sync your project