fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 929 forks source link

The plugin `flutter_webview_plugin` uses a deprecated version of the Android embedding. #926

Open sukhkmr19 opened 2 years ago

sukhkmr19 commented 2 years ago

The plugin flutter_webview_plugin 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.

Please fix

TesteurManiak commented 2 years ago

Same as https://github.com/fluttercommunity/flutter_webview_plugin/issues/921

AndrewPalet commented 2 years ago

This is preventing me from building my app's APK. Although I'm still able to simulate IOS devices. Is this the same for you?

salleh commented 2 years ago

so many issues referring to this one lately... should merge the issues: #930 , #932 , #933 etc.

kapil708 commented 2 years ago

try this

dependencies:
  flutter_webview_plugin:
    git: https://github.com/nuc134r/flutter_webview_plugin.git
Marcolav commented 2 years ago

try this

dependencies:
  flutter_webview_plugin:
    git: https://github.com/nuc134r/flutter_webview_plugin.git

This is not working for me. This is what I get:

`Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

For solutions, see https://dart.dev/go/unsound-null-safety Error: Cannot run with sound null safety, because the following dependencies don't support null safety:

For solutions, see https://dart.dev/go/unsound-null-safety

     *********************************************************

WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX. See https://goo.gl/CP92wY for more information on the problem and how to fix it. This warning prints for all Android build failures. The real root cause of the error may be unrelated.


FAILURE: Build failed with an exception.

BUILD FAILED in 18s Exception: Gradle task assembleDebug failed with exit code 1`

snoopdoggy322 commented 2 years ago

try it :

  flutter_webview_plugin:
    git: https://github.com/snoopdoggy322/flutter_webview_plugin