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

authentication { basic(BasicAuthentication) } is worng. Please help me. #1

Open
freshmanMrxin opened this issue Aug 28, 2024 · 1 comment

Comments

@freshmanMrxin
Copy link

I learned your mapbox configuration tutorial on youtube, I found an authentication {basic(BasicAuthentication)} error while doing it myself, here is my error message: 1. Unresolved reference: basic; 2. Function invocation 'BasicAuthentication(...)' expected; 3. No value passed for parameter 'function'. Could you please tell me how to modify it, thank you very much.

@freshmanMrxin
Copy link
Author

This is my settings.gradle code:
pluginManagement {
repositories {
google {
content {
includeGroupByRegex("com\.android.")
includeGroupByRegex("com\.google.
")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven {
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
// Do not change the username below. It should always be "mapbox" (not your username).

        credentials.username = "mapbox"
        // Use the secret token stored in gradle.properties as the password
        credentials.password = providers.gradleProperty("MAPBOX_DOWNLOADS_TOKEN").get()
        authentication { basic(BasicAuthentication) }
    }
}

}

rootProject.name = "ApplicationSet"
include(":app")

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

1 participant