Closed AndroidDeveloperLB closed 6 years ago
Gradle sync failure, to ensure that the network is normally retried.
Why is it closed? Did you fix it?
Because it's not EasyCalendar's problem. Your version of Gradle's dependency doesn't match the local, so Android Studio automatically downloads the specified version, but fails. You should download it when the network is in good condition. And, Google can help you.
The network is fine. I've already downloaded a lot of other repos, and I'm writing this to you using the same network.
Your Build.gradle(Project: EasyCalendar) and gradle-wrapper.properties is changed, I think you modified the version of Gradle. But the new Gradle download failed. You can try to change the version to the same as your other repos. Or use local gradle distribution in Setting of AS.
No idea why this occurs, but it doesn't now, after I cloned it again. Maybe because I've updated the IDE to the final 3.0 version.
Anyway, please update your SDK and sample. Here are the current updated gradle files:
library
apply plugin: 'com.android.library'
android {
compileSdkVersion 27
buildToolsVersion "27.0.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile 'com.android.support:recyclerview-v7:27.0.0'
compile 'com.android.support:gridlayout-v7:27.0.0'
}
apply plugin: 'com.novoda.bintray-release'
publish {
userOrg = 'shichaohui'
groupId = 'com.sch.calendar'
artifactId = 'easy-calendar'
publishVersion = '1.0.1'
desc = 'Quickly customize the calendar UI. You can use EasyCalendar to quickly get the calendar style UI.'
website = 'https://github.com/shichaohui/EasyCalendar.git'
}
example
apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion "27.0.0"
defaultConfig {
applicationId "com.sch.easycalendar"
minSdkVersion 14
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
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:27.0.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
dependencies {
compile 'com.jakewharton:butterknife:8.8.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
}
compile project(':library')
// compile 'com.sch.calendar:easy-calendar:1.0.0'
}
project
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0'
classpath 'com.novoda:bintray-release:0.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
Modified.
Thanks.
I get this issue: