Skip to content

Kotlin version issue after updating to v13.0.0 for gradle issue #1264

@jayrathod-solutelabs

Description

@jayrathod-solutelabs

Bug Report
Description of the Bug

After updating the library, I get this error when trying to play a video:

VIDEO_NOT_PLAYABLE_IN_EMBEDDED_PLAYER

I was using:

implementation 'com.github.PierfrancescoSoffritti.android-youtube-player:core:10.0.5'

After updating to:

implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:13.0.0'

the same error appears.

I also get a Kotlin version issue:

Module was compiled with an incompatible version of Kotlin. 
The binary version of its metadata is 2.1.0, expected version is 1.9.0.

If I update Kotlin to 2.1.0, Gradle throws:

Unable to read Kotlin metadata due to unsupported metadata version.

Environment details

Android Version: Android 14
API Version: 35

Tested devices:

Pixel 7 (API 35)

Samsung Galaxy S21 (API 34)

Youtube Player Library Version: 13.0.0

Steps to reproduce the bug

Use core:13.0.0 with Kotlin 1.9.0

Try to play a YouTube video that previously worked in version 10.0.5

Observe VIDEO_NOT_PLAYABLE_IN_EMBEDDED_PLAYER

See Kotlin compatibility error in build logs

Expected behavior

Video should play correctly, and Kotlin compatibility errors should not occur.

Actual behavior

Video does not play and shows VIDEO_NOT_PLAYABLE_IN_EMBEDDED_PLAYER

Build throws Kotlin version compatibility errors

Additional information

Project setup:

Kotlin: 1.9.0

Gradle: 8.7

compileSdkVersion: 35

targetSdkVersion: 35

Updating Kotlin to 2.1.0 creates new Gradle metadata errors.
Would like to know which Kotlin + library version combination is currently supported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions