Skip to content

fix(android): set the Kotlin jvmTarget without requiring the Kotlin G… - #3799

Merged
szuperaz merged 1 commit into
developfrom
follow-up-3798
Sep 8, 2026
Merged

fix(android): set the Kotlin jvmTarget without requiring the Kotlin G…#3799
szuperaz merged 1 commit into
developfrom
follow-up-3798

Conversation

@szuperaz

@szuperaz szuperaz commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3798. That change stops applying kotlin-android when AGP has already
registered the kotlin extension, which is what AGP 9 does by default. But
android.kotlinOptions is contributed by the Kotlin Gradle plugin itself, so skipping the
plugin left both wrapper modules unable to configure at all:

> Could not find method kotlinOptions() for arguments [...] on extension 'android'
  of type com.android.build.gradle.LibraryExtension.

Set the target on the KotlinCompile tasks instead. That form resolves on both paths.

A note for integrators: the android.builtInKotlin=false is still necessary because the SDK has peer dependencies that require this setting.

@szuperaz
szuperaz requested a review from oliverlaz September 8, 2026 09:44
@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2031 KB 2031 KB 0 B 🟢

@szuperaz
szuperaz merged commit cb145c7 into develop Sep 8, 2026
11 checks passed
@szuperaz
szuperaz deleted the follow-up-3798 branch September 8, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants