This Content is from Stack Overflow. Question asked by Pavel Murnikov
Upon upgrading to Flutter 3.3.2 I”m not able to build my application due to ‘open_file’ plugin using a deprecated version of Android embedding. Is there a way to migrate said plugin to Android V2 embedding as recommended in the below warning message? Or I have to downgrate to Flutter 2.x.x?
The plugin `open_file` uses a deprecated version of the Android embedding. To avoid unexpected runtime failures, or future build failures, try to see if this plugin supports the Android V2 embedding. Otherwise, consider removing it since a future release of Flutter will remove these deprecated APIs. If you are plugin author, take a look at the docs for migrating the plugin to the V2 embedding: https://flutter.dev/go/android-plugin-migration. Launching libmain.dart on sdk gphone x86 arm in debug mode... libmain.dart:1 Error: Cannot run with sound null safety, because the following dependencies don't support null safety: - package:open_file For solutions, see https://dart.dev/go/unsound-null-safety 2 FAILURE: Build failed with an exception.
Flutter doctor output
You can upgrade the version of
open_file you are using in your project. Check out the available versions that best fit your project here. You can also use the
flutter pub upgrade --major-versions command to upgrade all your dependencies.
This Question was asked in StackOverflow by Pavel Murnikov and Answered by Cristiano Haas It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.