小编J V*_*nto的帖子

Android Studio 错误:无法从“file:/C:/Users/~/gradle/wrapper/”安装 Gradle 发行版

我是一个完全的菜鸟,需要一些帮助。我该如何纠正这个问题?多谢!!哪里错了?

我的档案

gradle-wrapper.properties

 #Fri Jul 19 12:04:39 BST 2019
    distributionBase=GRADLE_USER_HOME
    distributionPath=wrapper/dists
    zipStoreBase=GRADLE_USER_HOME
    zipStorePath=wrapper/dists
    distributionUrl=
      https\://services.gradle.org/distributions/gradle-5.1.1-all.zip= 
Run Code Online (Sandbox Code Playgroud)

build.gradle(模块:应用程序)

apply plugin: 'com.android.application'

android {
    compileSdkVersion 28
    buildToolsVersion '27.0.3'
    defaultConfig {
        applicationId "com.example.a7700teste"
        minSdkVersion 16
        targetSdkVersion 28
        versionCode 5
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:28.1.1'
    implementation 'com.android.support:design:28.1.1'
    implementation 'com.android.support:exifinterface:28.1.1'
    implementation 'com.android.support.constraint:constraint-layout:3.0.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.google.firebase:firebase-core:17.0.1'
    implementation …
Run Code Online (Sandbox Code Playgroud)

android-studio android-gradle-plugin

5
推荐指数
1
解决办法
2万
查看次数