GrenderG / Toasty

The usual Toast, but with steroids 💪
GNU Lesser General Public License v3.0
6.58k stars 809 forks source link

I'm getting error Failed to resolve: com.github.GrednerG:Toasty:1.4 #181

Closed ghost closed 3 years ago

ghost commented 3 years ago

[Below] is the full error what i'm getting

Failed to resolve: com.github.spikeysanju:motiontoast:1.4 <a href="open.dependency.in.project.structure">Show in Project Structure dialog</a> Affected Modules: <a href="openFile:E:/Users/Rick/AppData/Local/Android/AndroidStudioProjects/newapp/app/build.gradle">app</a>

And here is my build.gradle file

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {

    repositories {
        google()
        mavenCentral()
        maven { url "https://jitpack.io" }
    }
    dependencies {
        classpath "com.android.tools.build:gradle:7.0.3"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

}

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

here is my build.gradle (:app)

plugins {
    id 'com.android.application'
}

android {
    compileSdk 31

    defaultConfig {
        applicationId "com.example.newapp"
        minSdk 21
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.3.1'
    implementation 'com.google.android.material:material:1.4.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
    implementation files('E:\\AnimatedBottomBar\\library-1.1.0.aar')
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.3'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
    implementation 'com.github.spikeysanju:motiontoast:1.4'

}

Screenshot (26)

MujahidHi5 commented 3 years ago

@GrenderG please move to maven , jitpack is now deprecated

ghost commented 3 years ago

@GrenderG please move to maven , jitpack is now deprecated

Thanks.

makkhay commented 2 years ago

@SHUbham23-rgb How did you move to maven? What do I need to do inside my build.gradle file ?

Nurtaz440 commented 2 years ago

Hello please help me

Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':app:debugCompileClasspath'.