Failed to resolve: com.okta.android:okta-idx-kotlin:2.1.0

I am following this steps Overview of the mobile Identity Engine SDK | Okta Developer, for android setup

and the dependency cannot be found, any idea??

Failed to resolve: com.okta.android:okta-idx-kotlin:2.1.0
Show in Project Structure dialog
Affected Modules: app

Hi @pedrovarela, please make sure the following line is in your build.gradle:

implementation ‘com.okta.android:okta-idx-kotlin:2.1.0’

Yes that is what I have in Gradle, but the app won’t build because it says the dependency can’t be found

Could you please try refreshing your dependencies? You may need to delete the cached files under ~/.gradle/caches

Hi there, clearing the gradle cache won’t solve the issue.

I created also a new project with nothing else but the okta-idx-kotlin, but still won’t work. Running androidDependecy task I get the following errors.

Execution failed for task ':app:androidDependencies'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
   > Could not find com.okta.android:okta-idx-kotlin:2.1.0.
     Required by:
         project :app

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

My current android studio version is Electric Eel, checking gradle settings. I see the I have the repos set up.

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

is this SDK in another repository not mention here?

Using the Android Studio dependency manager this is what I get.