alpha0010 / react-native-file-access

Filesystem access for React Native
MIT License
307 stars 19 forks source link

JVM 1.6 target? #34

Closed rblalock closed 2 years ago

rblalock commented 2 years ago

For whatever reason, the build tools seem to think this library on Android targets JVM 1.6. Here's the error message:

.../node_modules/react-native-file-access/android/src/main/java/com/alpha0010/fs/NetworkHandler.kt: (106, 8): Cannot inline bytecode built with JVM target 1.8 into bytecode that is being built with JVM target 1.6. Please specify proper '-jvm-target' option

I've gradle cleaned it out and rebuilt it but still get this. Any ideas?

rblalock commented 2 years ago

I bumped kotlin from 1.4.32 to 1.5.21 and that fixed it.