MotionToast icon indicating copy to clipboard operation
MotionToast copied to clipboard

Android Studio is unable to find the repo

Open UmarRS opened this issue 3 years ago • 1 comments

Hi, When I build the project using the Motion Toast imports in project and app gradle files, the compiler gives me the following error ->

Execution failed for task ':app:checkDebugDuplicateClasses'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.github.Spikeysanju:MotionToast:1.4. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/github/Spikeysanju/MotionToast/1.4/MotionToast-1.4.pom - https://repo.maven.apache.org/maven2/com/github/Spikeysanju/MotionToast/1.4/MotionToast-1.4.pom - https://jcenter.bintray.com/com/github/Spikeysanju/MotionToast/1.4/MotionToast-1.4.pom Required by: project :app

Here's a copy of the gradle

Screen Shot 2021-11-18 at 11 21 28 AM

UmarRS avatar Nov 16 '21 14:11 UmarRS

maven { url "https://jitpack.io" }

Put it inside allrepository block inside settings.graddle.

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
        jcenter() // Warning: this repository is going to shut down soon
        maven { url "https://jitpack.io" }
    }
}

saugatrai33 avatar Dec 30 '21 14:12 saugatrai33