Giter VIP home page Giter VIP logo

Comments (8)

shichaohui avatar shichaohui commented on September 26, 2024

Gradle sync failure, to ensure that the network is normally retried.

from easycalendar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on September 26, 2024

Why is it closed?
Did you fix it?

from easycalendar.

shichaohui avatar shichaohui commented on September 26, 2024

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.

from easycalendar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on September 26, 2024

The network is fine. I've already downloaded a lot of other repos, and I'm writing this to you using the same network.

from easycalendar.

shichaohui avatar shichaohui commented on September 26, 2024

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.
image
Or use local gradle distribution in Setting of AS.
image

from easycalendar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on September 26, 2024

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
}

from easycalendar.

shichaohui avatar shichaohui commented on September 26, 2024

Modified.

from easycalendar.

AndroidDeveloperLB avatar AndroidDeveloperLB commented on September 26, 2024

Thanks.

from easycalendar.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.