Issues with setting up license credentials

Hello, I am trying to setup my license credentials in Android Studio, but I am always getting this error when trying to build:

Could not compile settings file 'E:\Projects\Kotlin\FirstChartAPP\settings.gradle'.
> startup failed:
  settings file 'E:\Projects\Kotlin\FirstChartAPP\settings.gradle': 23: unable to resolve class create 
   @ line 23, column 17.
                     create<BasicAuthentication>("basic")

This is how my settings.gradle looks:

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()

        maven{
            url "https://maven.pkg.jetbrains.space/data2viz/p/maven/dev"
        }
        maven{
            url "https://maven.pkg.jetbrains.space/data2viz/p/maven/public"
        }
        maven {
            url = uri("https://maven.pkg.jetbrains.space/data2viz/p/charts-1-r/maven")
            authentication {
                create<BasicAuthentication>("basic")
            }
            credentials {
                username = ""         // my client id
                password = ""         // my client secret
            }
        }
    }
}
rootProject.name = "FirstChartAPP"
include ':app'

:eyes: We’ll have a look with @louis.cad .

1 Like

Hello, the whole authentication block is unneeded if you keep the credentials one. Can you try this way?

1 Like

Thank you, now it is building without errors.

1 Like