Hello, I need help. The problem appears when the api level of the application decreases from 25 to 21, how can this be corrected? If you change to api level 25, everything is fine, there are no errors.

build.gradle contents biild.gradle

Error screenshot: error

  • Attach the text with build.gradle and errors. Also I advise you to read.stackoverflow.com/questions/697603/… - DeKaNszn
  • one
    What is the meaning of compileSdkVersion downgrading? Enough targetSdkVersion "while reducing the api level of the application." - Eugene Krivenja

2 answers 2

The major version number of the com.android.support group libraries can no longer be compileSdkVersion .

In your case, either increase compileSdkVersion to 25, or lower the version for all dependencies of the com.android.support group to 21.xx.

You use resources that work with 23 api. compileSdk put 25

  • Interested in creating a project with version api 21 - Artem Ivanov
  • min sdk leave 21. compileSDK put 25. And that's all - user239760