の予期しない終わり3.0にアンドロイドスタジオを更新し、gradle plugin 3.0.0
に切り替えた後、私はこのエラーを取得しています:アンドロイドのGradle 3.0.0 - ZLIB入力ストリーム
Gradle '...' project refresh failed
Error:Unexpected end of ZLIB input stream
の問題は、すべて私の古いプロジェクトではなく、ブランドの新しい、両方表示されます1つだけでも。 これを引き起こす原因は何ですか?
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.1.51'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
そしてgradle-wrapper.properties
:
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
任意の助けいただければ幸いですGradleでは2.3.3は
私のプロジェクトbuild.gradle
正常に動作します!