Skip to content

Fail on Android with AGP 9.0: Extension of type 'BaseExtension' does not exist #1880

@perqin

Description

@perqin

Using Android Gradle Plugin 9.1.0-alpha01 with new DSL enabled by default. When using the byteBuddy in dependencies block, Gradle Sync fails.

The usage:

dependencies {
    byteBuddy("io.opentelemetry.android.instrumentation:android-log-agent:1.0.0-rc.1-alpha")
}

The error output:

* What went wrong:
A problem occurred configuring project ':app'.
> Extension of type 'BaseExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, VersionCatalogsExtension, BasePluginExtension, SourceSetContainer, ReportingExtension, JavaToolchainService, JavaPluginExtension, KotlinAndroidProjectExtension, ApplicationExtension, ApplicationAndroidComponentsExtension, LintLifecycleExtension, KspExtension, GoogleServicesPlugin.GoogleServicesPluginConfig, ByteBuddyAndroidTaskExtension]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions