Skip to content

AGP 9 support #4256

@bddckr

Description

@bddckr

Describe the bug
Android Gradle Plugin 9 (9.0.0-alpha05) doesn't seem to be supported. All projects using Dokka are logging this:

> Configure project :my-project
class org.jetbrains.dokka.gradle.adapters.AndroidExtensionWrapper could not get Android Extension for project :my-project

Expected behaviour
Dokka should behave properly on AGP 9, just like it works fine on AGP 8.13.0.

To Reproduce
In an Android project using Dokka v2, change the AGP dependencies to use (the latest preview of) version 9.

Installation

  • Operating system: macOS
  • Build tool: Gradle 9.0.0
  • Dokka version: 2.0.0

Additional context
I'm aware that AGP 9 is in preview status right now, but I figured it's a good idea to open an issue early for the breaking API changes done in AGP.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugplatform: android-jvmAn issue/PR that has some Android platform specificsrunner: Gradle pluginAn issue/PR related to Dokka's Gradle plugin

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions