Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I'm getting error Failed to resolve: com.github.GrednerG:Toasty:1.1.2 #2

Closed
yofu1234 opened this issue Jan 22, 2017 · 4 comments
Closed

Comments

@yofu1234
Copy link

I'm getting error Failed to resolve: com.github.GrednerG:Toasty:1.1.2 whenever I try to build.

Here is my gradle file:

buildscript {
    repositories {
        mavenLocal()
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

screen shot 2017-01-21 at 11 17 21 pm

@akhilNair
Copy link

Please go to File->Settings->Gradle. Uncheck the Offline work if it is checked and sync the project again. It worked for me. Happy coding!

@GrenderG
Copy link
Owner

Try to move maven { url "https://jitpack.io" } inside allprojects > repositories instead of buildscript > repositories and tell me if it works.

@yofu1234
Copy link
Author

Solved.

@zubairrahmani
Copy link

I'm getting error Failed to resolve: com.github.GrednerG:Toasty:1.1.2 whenever I try to build.

Here is my gradle file:

buildscript {
    repositories {
        mavenLocal()
        jcenter()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.1.0'
        classpath 'com.google.gms:google-services:3.0.0'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

screen shot 2017-01-21 at 11 17 21 pm

disable this experimental feature from
File → Settings → Experimental → Gradle → Only sync the active variant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants