我是一个完全菜鸟,需要一些帮助。我该如何解决这个问题?非常感谢!!哪里错了?
我的文件
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=
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 'com.google.firebase:firebase-auth:18.1.0'
implementation 'com.google.firebase:firebase-database:18.0.0'
implementation 'com.google.firebase:firebase-storage:18.1.0'
implementation 'com.squareup.picasso:picasso:2.71828'
}
apply plugin: 'com.google.gms.google-services'
build.gradle(项目)
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.3.0'
classpath 'com.google.gms:google-services:4.3.0'
implementation 'com.google.firebase:firebase-core:17.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
/*maven {
url: "https://maven.google.com"
}*/
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
当我尝试进行Gradle Project Sync时,它失败,并说:
错误消息:无法从以下位置安装Gradle分发 “文件:/ C:/ Users / Admin / AndroidStudioProjects / 7700teste / gradle / wrapper /”。