Closed Katekko closed 2 years ago
Same
To build and no show errors in Flutter 3.0.4 for dev mode, change line 30 in file FileSaverPlugin.kt
val messenger = pluginBinding?.binaryMessenger
to
val messenger = pluginBinding?.binaryMessenger!!
Changes to prevent this error: https://github.com/incrediblezayed/file_saver/pull/37/commits/c88d506bec5ceebff4ce2ec11f0528e03b233135
Fixes are coming to pub.dev tonight or tomorrow
\AppData\Local\Pub\Cache\hosted\pub.dartlang.org\file_saver-0.1.0\android\src\main\kotlin\com\one\file_saver\FileSaverPlugin.kt: (31, 39): Type mismatch: inferred type is BinaryMessenger? but BinaryMessenger was expected
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':file_saver:compileDebugKotlin'.
Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 33s Exception: Gradle task assembleDebug failed with exit code 1