flutter_webview_plugin icon indicating copy to clipboard operation
flutter_webview_plugin copied to clipboard

flutter_webview_plugin uses a deprecated version of the Android embedding

Open chandaniBhalala opened this issue 4 years ago • 7 comments

After update flutter version to 2.5 my app was broken because flutter_webview_plugin not using v2 Android embedding. So, could you please update this package?

chandaniBhalala avatar Oct 04 '21 09:10 chandaniBhalala

The plugins `flutter_webview_plugin` use a deprecated version of the Android embedding.
To avoid unexpected runtime failures, or future build failures, try to see if these plugins support the Android V2 embedding. Otherwise, consider removing
them 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.

mustafa-707 avatar Oct 04 '21 09:10 mustafa-707

I have the same issue and the same log as @mustafa-707, so I'll add flutter doctor -v

Flutter doctor -v

[√] Flutter (Channel stable, 2.5.2, on Microsoft Windows [Versión 10.0.19043.1110], locale es-ES)
    • Flutter version 2.5.2 at c:\flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 3595343e20 (4 days ago), 2021-09-30 12:58:18 -0700
    • Engine revision 6ac856380f
    • Dart version 2.14.3

[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at c:\android\android_sdk\
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = c:\android\android_sdk\
    • Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.2)
    • Android Studio at C:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[√] VS Code, 64-bit edition (version 1.57.0)
    • VS Code at C:\Program Files\Microsoft VS Code
    • Flutter extension version 3.25.0

[√] Connected device (3 available)
    • Android SDK built for x86 (mobile) • emulator-5554 • android-x86    • Android 8.1.0 (API 27) (emulator)
    • Chrome (web)                       • chrome        • web-javascript • Google Chrome 94.0.4606.71
    • Edge (web)                         • edge          • web-javascript • Microsoft Edge 94.0.992.38

• No issues found!

pablogalve avatar Oct 04 '21 10:10 pablogalve

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

If i add this into my yaml file, it says

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

Kuroiteiken avatar Nov 01 '21 07:11 Kuroiteiken

Any update on this?

rsree1210 avatar Nov 09 '21 04:11 rsree1210

Duplicate of #921

snoopdoggy322 avatar Jan 17 '22 13:01 snoopdoggy322

Any update on this.

jeevankoiri10 avatar Jan 14 '24 04:01 jeevankoiri10