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 andre-paraense opened this issue 3 years ago • 67 comments

System info

Issue occurs on: both Plugin version: 0.4.0 Flutter doctor output:

$ flutter doctor -v
[✓] Flutter (Channel stable, 2.5.0, on macOS 11.5.2 20G95 darwin-x64,
    locale en-GB)
    • Flutter version 2.5.0 at /Users/andre.paraense/Projects/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 4cc385b4b8 (5 days ago), 2021-09-07 23:01:49
      -0700
    • Engine revision f0826da7ef
    • Dart version 2.14.0

[✓] Android toolchain - develop for Android devices (Android SDK
    version 30.0.0-rc2)
    • Android SDK at /Users/andre.paraense/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0-rc2
    • ANDROID_HOME = /Users/andre.paraense/Library/Android
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      11.0.10+0-b96-7281165)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.11.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google
      Chrome

[✓] Android Studio (version 2020.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • 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.10+0-b96-7281165)

[✓] VS Code (version 1.60.0)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension can be installed from:
      🔨
      https://marketplace.visualstudio.com/items?itemName=Dart-Code.flu
      tter

[✓] Connected device (3 available)
    • sdk gphone x86 (mobile)    • emulator-5554
      • android-x86    • Android 11 (API 30) (emulator)
    • iPhone 12 Pro Max (mobile) • C86AC201-D1ED-41A5-ADBA-A2F609200150
      • ios            • com.apple.CoreSimulator.SimRuntime.iOS-14-5
      (simulator)
    • Chrome (web)               • chrome
      • web-javascript • Google Chrome 93.0.4577.63

• No issues found!

Steps to Reproduce

Just run any application using flutter_webview_plugin version 0.4.0 after upgrading to Flutter 2.5 and you will get the warning message.

Logs

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.

andre-paraense avatar Sep 13 '21 10:09 andre-paraense

I am also facing the same issue

Malkeet12 avatar Sep 14 '21 05:09 Malkeet12

me too

kolhozz avatar Sep 14 '21 11:09 kolhozz

I have the same issue

Horace7 avatar Sep 15 '21 02:09 Horace7

I have the same issue, any update?

hussamDana92 avatar Sep 15 '21 08:09 hussamDana92

I'm facing the same issue

ken-ng-esotec avatar Sep 15 '21 12:09 ken-ng-esotec

I'm facing the same issue

andreylubnin avatar Sep 16 '21 08:09 andreylubnin

Idem

Stephane99 avatar Sep 16 '21 11:09 Stephane99

Any work around ?

ahaneef29 avatar Sep 16 '21 13:09 ahaneef29

This plugin needs to be updated use the V2 embedding method described here: https://flutter.dev/go/android-plugin-migration

Stephane99 avatar Sep 20 '21 08:09 Stephane99

Same issue

StarTakko avatar Sep 23 '21 20:09 StarTakko

Would downgrading my Flutter and Dart versions resolve this issue? Has anyone else tried this?

AndrewPalet avatar Sep 23 '21 21:09 AndrewPalet

The same issue when I upgrade flutter to 2.5 whereas on the old version it's working

adityatamhane avatar Sep 24 '21 09:09 adityatamhane

I'm facing same issue with flutter 2.5

NaarGes avatar Sep 24 '21 17:09 NaarGes

same issue

lyf571321556 avatar Sep 25 '21 14:09 lyf571321556

same issue

Valien-zhang avatar Sep 26 '21 06:09 Valien-zhang

same issue

z244370114 avatar Sep 27 '21 03:09 z244370114

same issue

DK3369 avatar Sep 30 '21 01:09 DK3369

same issue

imasubmarine avatar Sep 30 '21 09:09 imasubmarine

pls fix

tony123S avatar Oct 01 '21 06:10 tony123S

I am also facing same issue with flutter 2.5.

selvas1998 avatar Oct 01 '21 09:10 selvas1998

I'm also facing the same issue. When can we expect an update?

pablogalve avatar Oct 04 '21 09:10 pablogalve

Works with 2.2.3 Not with 2.5

faslurrajah avatar Oct 05 '21 15:10 faslurrajah

same here

mustafa-707 avatar Oct 11 '21 11:10 mustafa-707

need update with fix

zakarianekal avatar Oct 11 '21 14:10 zakarianekal

is there any plan for update devs?

or is there know any other package who can provide ssl error & onurlchanged?

Nabouste avatar Oct 19 '21 07:10 Nabouste

tyr this

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

kapil708 avatar Oct 20 '21 11:10 kapil708

tyr this

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

can you please explain how to fix this , because i have same issue with other packages

ahmed-foulad20 avatar Oct 26 '21 15:10 ahmed-foulad20

I also faced this problem, precisely when I resumed a flutter 2.4.0 project, apparently the plugin there is no compatibility with version 2.5.0. When running the flutter pub get command I received the error and I was able to solve it by running

flutter downgrade

This command returns flutter to version 2.2.1, which allows working with flutter_webview_plugin without problems.

When you need to work with the latest version of Flutter, you can run the flutter upgrade command and you will have the latest version instantly.

I hope this is also helpful while the package's developers solve the root problem.

jeisoncf9 avatar Oct 27 '21 16:10 jeisoncf9

Same Issue. 😟 Is there any solution to fix this issue without downgrading the Flutter version?

try this

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

When I try as above mentioned way, the Issue did not occur. but what is the logic behind this?

LakshanFernando avatar Nov 01 '21 11:11 LakshanFernando

Same Issue. 😟 Is there any solution to fix this issue without downgrading the Flutter version?

try this

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

When I try as above mentioned way, the Issue did not occur. but what is the logic behind this?

https://github.com/nuc134r/flutter_webview_plugin/commit/f85db45aedefeab4c1df75cfc4c35f62d3c1c629

ipavlyk-startupsoft avatar Nov 30 '21 18:11 ipavlyk-startupsoft