错误:找不到com.android.tools.build:gradle:3.4.1。已搜寻 在以下位置: https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.1/gradle-3.4.1.pom https://jcenter.bintray.com/com/android/tools/build/gradle/3.4.1/gradle-3.4.1.jar 要求: 项目:添加Google Maven存储库并同步项目打开文件启用嵌入式Maven存储库并同步项目
我尝试更新distributionUrl
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
这是我的构建成就
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion '27.0.3'
defaultConfig {
applicationId "com.example.android.miwok"
minSdkVersion 15
targetSdkVersion 29
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
implementation "com.android.support:appcompat-v7:$supportVersion"
implementation "com.android.support:support-v4:$supportVersion"
implementation "com.android.support:design:$supportVersion"
}