当我今天更新 Android Studio 的时候,它写道: 最小支持的 Gradle 版本是3.3。现在的版本是3.2,我怎样才能解决这个问题?
这是我的建筑,梯度
// 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:2.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
第二阶段:
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
applicationId "com.tosi.ex"
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
multiDexEnabled true
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
sourceSets { main { assets.srcDirs = ['src/main/assets', 'src/main/assets/'] } }
}
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.1'
compile 'com.android.support:design:25.2.1'
compile 'com.github.ksoichiro:android-observablescrollview:1.5.0'
compile 'com.android.support:support-v4:25.2.1'
compile 'com.android.support:mediarouter-v7:25.2.1'
compile 'com.google.android.gms:play-services:10.2.1'
compile 'com.android.support:cardview-v7:25.2.1'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'uk.co.chrisjenx:calligraphy:2.2.0'
testCompile 'junit:junit:4.12'
}
特性:
#Tue Mar 28 17:26:02 CEST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2-all.zip
当我将 properties distribution tionUrl 更改为3.3-all.zip 时,它仍然保留了刷新功能 我不知道怎么处理这个问题,请帮帮我 非常感谢