Skip to content

AGP 9.0.0 compability issues #1185

@syslogic

Description

@syslogic

Describe the bug

Plugin cannot be applied, when removing the Kotlin Android plugin, as suggested:

Solution: Remove the org.jetbrains.kotlin.android plugin from this project's build file ...

Tasks executed

Any. It already fails when applying the plugin.

Expected behavior

Just build.

Additional context (if a crash, provide stack trace)

In short:

Caused by: org.gradle.api.UnknownDomainObjectException: Extension of type 'BaseAppModuleExtension' does not exist. Currently registered extension types: [ExtraPropertiesExtension, LibrariesForLibs, VersionCatalogsExtension, BasePluginExtension, SourceSetContainer, ReportingExtension, JavaToolchainService, JavaPluginExtension, KotlinAndroidProjectExtension, ApplicationExtension, ApplicationAndroidComponentsExtension, LintLifecycleExtension, KtlintExtension, PublishingExtensionImpl, PlayPublisherExtension]

Based upon this AGP issue before:

An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.android', version: '2.2.21']
> Failed to apply plugin 'org.jetbrains.kotlin.android'.
   > Failed to apply plugin 'com.jetbrains.kotlin.android'
     The 'org.jetbrains.kotlin.android' plugin is no longer required for Kotlin support since AGP 9.0.
     Solution: Remove the 'org.jetbrains.kotlin.android' plugin from this project's build file: mobile\build.gradle.kts.
     See https://issuetracker.google.com/438678642 for more details.
      > java.lang.Throwable (no error message)

How To Reproduce

See "Tasks executed"

Versions

Plugin 4.0.0
Gradle 9.3.0
AGP 9.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIndicates an unexpected problem or unintended behaviorwaiting-for-replyIndicates that an issue or pull request needs more information

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions