1.修改build.gradle配置为:
allprojects { repositories { jcenter() mavenCentral() google() } }
然后clean后重新编译即可