Error: Could not find com.android.tools.build:gradle:2.2.2.
Searched in the following locations: https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.pom https://repo1.maven.org/maven2/com/android/tools/build/gradle/2.2.2/gradle-2.2.2.jar
Required by: biandroid:OracleBI:unspecified
Fix solution:
OracleBI 下的build.gradle respository 中的库,由mavenCentral() 改为 jcenter()
解析:
虽然jcenter和Maven Central 都是标准的 android library仓库,但是它们维护在完全不同的服务器上,由不同的人提供内容,两者之间毫无关系。在jcenter上有的可能 Maven Central 上没有,反之亦然。
本文介绍了一种常见的Gradle依赖错误及其解决方案。错误为找不到指定版本的Gradle插件,通过更改build.gradle文件中repository从mavenCentral()到jcenter()来解决此问题。文章解释了jcenter和MavenCentral的区别。
1万+

被折叠的 条评论
为什么被折叠?



