【发布时间】:2019-07-13 17:07:52
【问题描述】:
我想在 Android Studio 中打开十个https://github.com/mukundmadhav/Wordpress-to-Android-app 项目。但是,我有一个问题。
我遇到了错误
错误:找不到 com.android.tools.build:gradle:3.0.1。 在以下位置搜索: https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.jar 要求: 项目 : 添加 Google Maven 存储库并同步项目 打开文件
我尝试用这些方法解决问题
Gradle 4.1 issue on latest android studio 3.0.1
Could not find com.android.tools.build:gradle:3.0.1
Could not find com.android.tools.build.gradle:3.0.0-alpha7
但是,没有任何帮助,有人知道如何打开这个项目吗?
更新: 安卓版本 3.4.1
build.gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.google.gms:google-services:3.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
maven { url "https://maven.google.com" }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
【问题讨论】: