Skip to content

AGP 9 Migration: Upgrade Dokka to 2.2.0-Beta for better compatibility #578

@atick-faisal

Description

@atick-faisal

Problem

After migrating to AGP 9.1.0, Dokka 2.1.0 shows compatibility warnings during configuration:

class org.jetbrains.dokka.gradle.adapters.AndroidExtensionWrapper could not get Android Extension for project

Current Workaround

  • Wrapped Dokka configuration in afterEvaluate
  • Using dokkaSourceSets.configureEach instead of dokkaSourceSets.named("main")
  • Located in: build-logic/convention/src/main/kotlin/DokkaConventionPlugin.kt

Solution

Upgrade to Dokka 2.2.0-Beta when it becomes stable, which includes proper AGP 9.0.0 support with Built-in Kotlin.

References

Files to Update

  • gradle/libs.versions.toml: Change dokka = "2.1.0" to dokka = "2.2.0-Beta" (or stable when available)
  • build-logic/convention/src/main/kotlin/DokkaConventionPlugin.kt: Remove workarounds if no longer needed

Labels

  • enhancement
  • dependencies
  • documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPull requests that update a dependency filedocumentationImprovements or additions to documentationenhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions