Error: failed to find target with hash string 'android-21'

后端 未结 6 1686
自闭症患者
自闭症患者 2021-02-13 21:03

I want to change my compileSdkVersion from 23 to 21.So I have made following changes in the build.gradle but I am getting following error.How can I resolve this?

6条回答
  •  失恋的感觉
    2021-02-13 21:26

    You are using

     compile 'com.android.support:appcompat-v7:23.0.1'
    

    So you have to compile with API 23.
    Change your compileSdkVersion in your build.gradle file

     compileSdkVersion 23
    

提交回复
热议问题