Skip to content

πŸ› Issue: Gradle Sync Failure After Adding Okta Kotlin SDK (SerializationService / Missing JAR)Β #115

Description

@Tejaswi710

Describe the bug?

πŸ“Œ Description
After adding Okta Kotlin SDK dependencies, Gradle sync fails during project evaluation with a SerializationService error and missing Gradle tooling JAR.

❌ Error
org.jetbrains.plugins.gradle.tooling.serialization.SerializationService: Error accessing configuration file

Caused by:
java.nio.file.NoSuchFileException:
~/.gradle/caches/jars-8/.../gradle-tooling-extension-impl.jar

What is expected to happen?

Project should sync and build successfully after adding Okta dependencies.

What is the actual behavior?

After adding the Okta Kotlin SDK dependencies and syncing the project:

Gradle sync fails during project evaluation
Build does not proceed to compilation
The error occurs before any application code is executed

Error observed:

SerializationService: Error accessing configuration file
NoSuchFileException for a Gradle cached JAR (gradle-tooling-extension-impl.jar)

As a result, the project cannot be built or run.

Reproduction Steps?

Add Okta Kotlin SDK dependencies
Sync Gradle project
Build fails during configuration phase

Additional Information?

❓ Questions
Is Okta Kotlin SDK compatible with older SDK levels (compileSdk 30 / minSdk 21)?
Are there any known issues with Gradle tooling or BOM usage?
Any required Gradle/Kotlin/AGP version alignment for SDK v2.x?

🎯 What We Are Trying to Achieve
We are integrating Okta-based authentication in an Android application with:

  • Single Sign-On (SSO)
  • Authorization Code Flow with PKCE (Proof Key for Code Exchange)
    We are using the Okta Kotlin Mobile SDK to implement secure login via Chrome Custom Tabs.

πŸ§ͺ What I Already Tried
Stopped Gradle daemon (./gradlew --stop)
Cleared Gradle caches (~/.gradle/caches, ~/.gradle/daemon)
Invalidated Android Studio caches and restarted
Clean build (./gradlew clean)
Re-synced project

πŸ“Ž Additional Context
This is an existing project with multiple dependencies (Retrofit, Firebase, etc.)
Issue started immediately after adding Okta SDK
Error occurs during Gradle tooling phase, before compilation

SDK Version(s)

implementation(platform("com.okta.kotlin:bom:2.0.5"))

implementation("com.okta.kotlin:auth-foundation")
implementation("com.okta.kotlin:oauth2")
implementation("com.okta.kotlin:web-authentication-ui")

Build Information

Android Studio: Panda | 2025.3.2
Gradle Version: 6.7.1
Android Gradle Plugin (AGP): 4.2.2
Kotlin Version: 1.5.2
compileSdk: 30
targetSdk: 30
minSdk: 21

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions