Skip to content

KotlinSourceSet with name 'main' not found with AGP9 #6078

Description

@kevinguitar

SQLDelight Version

2.2.1

Operating System

MacOS

Gradle Version

9.1.0

Kotlin Version

2.3.0

Dialect

SQLite

AGP Version

9.0.0-rc02

Describe the Bug

When the app.cash.sqldelight plugin is applied to an Android module with AGP9, it failed with:

A problem occurred configuring project ':app'.
> KotlinSourceSet with name 'main' not found.

The workaround is to disable android.disallowKotlinSourceSets in gradle properties

I have prepared a minimum reproducer here, thanks!
https://github.com/kevinguitar/sqldelight-agp9-repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions