更新时间:2022-03-14 22:39:37
您需要在platform/android内的build.gradle文件中进行一些更改,并需要添加maven {url'
You need to do some changes in your build.gradle file inside platforms/android and need to add maven { url 'https://maven.google.com' } before the jcenter() as follows:
allprojects {
repositories {
mavenCentral()
maven { url 'https://maven.google.com' } //add this code
jcenter()
}
}
这对于新版本的Google库至关重要.他们将库从android SDK移到了Maven存储库中.
This is now essential for new versions of google libraries. They moved their libraries out of the android SDK to the maven repo.