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

Repository does not sync build.gradle #43

Open
Hmerman6006 opened this issue Mar 18, 2022 · 2 comments
Open

Repository does not sync build.gradle #43

Hmerman6006 opened this issue Mar 18, 2022 · 2 comments

Comments

@Hmerman6006
Copy link

Hmerman6006 commented Mar 18, 2022

Added repository to Module build.gradle and synced. Also added JCentre to project. Android Studio complains it cannot find build.gradle.

Gradle version: com.android.tools.build:gradle:4.1.1
Kotlin: v1.5.0

@dggorbachev
Copy link

dggorbachev commented Jun 20, 2023

add jcenter() into your dependencies:
repositories { google() mavenCentral() jcenter() }

@JaySpaceMonkey
Copy link

please add this in your settings.gradle

dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.PREFER_PROJECT)
    repositories {
        google()
        mavenCentral()
        maven("https://jcenter.bintray.com")
    }
}

repository was hosted in jcenter which is deprecrated now , hence explicitly specify the url .
@Hmerman6006

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

3 participants