MotionToast
MotionToast copied to clipboard
Android Studio is unable to find the repo
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
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" }
}
}