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

后端 未结 6 1678
自闭症患者
自闭症患者 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:17

    Below is for Android studio 1. Go to app -> build.gradle -> change "compileSdkVersion 'installed sdk version'"

    1. Go to Tools -> Android -> sync project with gradle files

    That's it, problem solved:-)

提交回复
热议问题