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

Android Studio is unable to find the repo #47

Open
UmarRS opened this issue Nov 16, 2021 · 1 comment
Open

Android Studio is unable to find the repo #47

UmarRS opened this issue Nov 16, 2021 · 1 comment

Comments

@UmarRS
Copy link

UmarRS commented Nov 16, 2021

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

@saugatrai33
Copy link

saugatrai33 commented Dec 30, 2021

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" }
    }
}

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

No branches or pull requests

2 participants