0

I would like to use MotionToast library for my kotlin application but I cannot add this on my build.gradle file;

allprojects {
        repositories {
            ...
            maven { url 'https://jitpack.io' }
        }
    }

It has been given this error;

16:37 Gradle sync failed: Build was configured to prefer settings repositories over project repositories but repository 'maven' was added by build file 'build.gradle' (820 ms)

How can I fix this?

  • I solved problem; https://stackoverflow.com/questions/69163511/build-was-configured-to-prefer-settings-repositories-over-project-repositories-b – propeace Feb 27 '22 at 13:46

0 Answers0