尝试将以下内容
google()作为第一个回购。不要把它放在
jcenter()和
mavenCentral()你现有的Android Studio项目。
repositories { google() // make this repo as the first one if Android Gradle Plugin is upgraded from 2.x to 3.x. jcenter() mavenCentral()}对于使用Android Gradle Plugin较低版本(例如2.2.3)的React Native或CordovaLib项目,你可以尝试将其替换为
google()以下内容,但请记住将其作为第一个回购选择。
repositories { // google() maven { url "https://maven.google.com" } jcenter()}清理所有旧.gradle缓存,然后执行新的同步。



