Skip to content

Repositories should be added to the settings.gradle instead of allprojects #151

@maxcruz

Description

@maxcruz

Android Studio introduced a new way to define repositories. If you have the dependencyResolutionManagement block in your settings.gradle, then you need to add the jitpack repository there instead of using the allprojects block

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

Maybe the documentation should be updated too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions