flutter_file_picker
flutter_file_picker copied to clipboard
Kotlin 2.1.0 compatibility issues in file_picker 10.3.3
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.