flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

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

Open sukhkmr19 opened this issue 4 years ago • 6 comments

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

sukhkmr19 avatar Sep 23 '21 10:09 sukhkmr19

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

TesteurManiak avatar Sep 23 '21 14:09 TesteurManiak

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?

AndrewPalet avatar Sep 23 '21 21:09 AndrewPalet

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

salleh avatar Oct 11 '21 02:10 salleh

try this

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

kapil708 avatar Oct 20 '21 11:10 kapil708

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:

  • package:flutter_webview_plugin

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:

  • package:flutter_webview_plugin

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.

  • Where: Script '/Users/marco/Applications/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1005

  • What went wrong: Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/Users/marco/Applications/flutter/bin/flutter'' finished with non-zero exit value 1

  • 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 18s Exception: Gradle task assembleDebug failed with exit code 1`

Marcolav avatar Oct 28 '21 09:10 Marcolav

try it :

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

snoopdoggy322 avatar Jan 11 '22 07:01 snoopdoggy322