Gradle Sync issue in Android Studio

来源:互联网 发布:啊哈算法2 pdf 完整版 编辑:程序博客网 时间:2024/06/05 15:04

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 上没有,反之亦然。

0 0
原创粉丝点击