image_downloader
image_downloader copied to clipboard
Build failed in 0.31.0
I can't build the app, could you take a look at this error?
V:\Env\flutter\.pub-cache\hosted\pub.dartlang.org\image_downloader-0.31.0\android\src\main\kotlin\com\ko2ic\imagedownloader\ImageDownloaderPlugin.kt: (332, 17): 'when' expression must be exhaustive, add necessary 'is Pending', 'is Successful' branches or 'else' branch instead
Same issue here!
Same problem when using Kotlin 1.7.10
go to android/build.gradle and change ext.kotlin_version = '1.7.10' to ext.kotlin_version = '1.6.10'
This fixed it for me.
Same here
e: ~/Developer/flutter/.pub-cache/hosted/pub.dartlang.org/image_downloader-0.31.0/android/src/main/kotlin/com/ko2ic/imagedownloader/ImageDownloaderPlugin.kt: (332, 17): 'when' expression must be exhaustive, add necessary 'is Pending', 'is Successful' branches or 'else' branch instead
The work-around by @Fairfieldfred works, even when the kotlin version is set to 1.6.21 (in my case), but the missing when
branches should still be added!