有人说应该安装Android Support Repository仓库,可是我这里没有:
点开项目的build.gradle(注意:不是module的,是project的),设置如下:
allprojects {repositories {google()//增加google仓库jcenter()//增加jcenter仓库maven { url "https://jitpack.io" };//增加manven仓库}}
点击第一行蓝色的字就好了,他会自动帮你弄得