flutter_file_picker icon indicating copy to clipboard operation
flutter_file_picker copied to clipboard

Kotlin 2.1.0 compatibility issues in file_picker 10.3.3

Open jimmyff opened this issue 2 months ago • 8 comments

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.

jimmyff avatar Sep 11 '25 17:09 jimmyff