解决方案:
在/android/app/build.gradle内编辑
新增mavenLocal() google()就能解决
buildscript {
repositories {
// 新增mavenLocal() google()就能解决
mavenLocal()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}