Skip to content

Kotlin 2.1.0 compatibility issues in file_picker 10.3.3 #1890

@jimmyff

Description

@jimmyff

Bug Description

file_picker 10.3.3 fails to compile with Kotlin 2.1.0, showing multiple compilation errors related to missing FileInfo class and type inference issues.

Environment

  • file_picker: 10.3.3
  • Kotlin: 2.1.0
  • Android Gradle Plugin: 8.13.0
  • Flutter: 3.35.3

Error Messages

  e: Cannot infer type for this parameter. Please specify it explicitly.
  e: Unresolved reference 'FileInfo'.
  e: Not enough information to infer type argument for 'R'.

Workaround

Downgrading to Kotlin 1.9.24 resolves the compilation errors.

Expected Behavior

Plugin should compile successfully with Kotlin 2.1.0, as this is the recommended version for Android API 36 support.

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