Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The plugin flutter_webview_plugin uses a deprecated version of the Android embedding #921

Open
andre-paraense opened this issue Sep 13, 2021 · 68 comments

Comments

@andre-paraense
Copy link

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.
@Malkeet12
Copy link

I am also facing the same issue

@kolhozz
Copy link

kolhozz commented Sep 14, 2021

me too

@Horace7
Copy link

Horace7 commented Sep 15, 2021

I have the same issue

@hussamDana92
Copy link

I have the same issue, any update?

@ken-ng-esotec
Copy link

I'm facing the same issue

1 similar comment
@andreylubnin
Copy link

I'm facing the same issue

@Stephane99
Copy link

Idem

@ahaneef29
Copy link

Any work around ?

@Stephane99
Copy link

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

@StarTakko
Copy link

Same issue

@AndrewPalet
Copy link

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

@adityatamhane
Copy link

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

@NaarGes
Copy link

NaarGes commented Sep 24, 2021

I'm facing same issue with flutter 2.5

@lyf571321556
Copy link

same issue

4 similar comments
@Valien-zhang
Copy link

same issue

@z244370114
Copy link

same issue

@DK3369
Copy link

DK3369 commented Sep 30, 2021

same issue

@imasubmarine
Copy link

same issue

@tony123S
Copy link

tony123S commented Oct 1, 2021

pls fix

@selvas1998
Copy link

I am also facing same issue with flutter 2.5.

@pablogalve
Copy link

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

@faslurrajah
Copy link

Works with 2.2.3
Not with 2.5

@mustafa-707
Copy link

same here

@zakarianekal
Copy link

need update with fix

@Nabouste
Copy link

Nabouste commented Oct 19, 2021

is there any plan for update devs?

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

@kapil708
Copy link

tyr this

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

@ahmed-foulad20
Copy link

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

@marcusrohden
Copy link

Hi, any updates on this issue? Thank you!

@sameh-khemira
Copy link

facing the same problem

@mbieng91
Copy link

mbieng91 commented Mar 8, 2022

still have a problem

@sahmed-uas
Copy link

@RoarGronmo did you able to resolve this issue? if yes pls share how did you resolved, thanks in advance

@RoarGronmo
Copy link

@sahmed-uas no, we haven't

j-manu added a commit to dataogram/flutter_webview_plugin that referenced this issue May 10, 2022
@Patelparth2442
Copy link

tyr this

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

my savior -)

@RoarGronmo
Copy link

@Patelparth2442 I got this error when using nuc134r approach...

Because aad_oauth 0.3.0 depends on flutter_webview_plugin ^0.4.0 and no versions of aad_oauth match >0.3.0 <0.4.0, aad_oauth ^0.3.0 requires flutter_webview_plugin from hosted.
So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.
pub get failed (1; So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.)

Still stuck here, maybe I need to search further down the line...

@Patelparth2442
Copy link

@Patelparth2442 I got this error when using nuc134r approach...

Because aad_oauth 0.3.0 depends on flutter_webview_plugin ^0.4.0 and no versions of aad_oauth match >0.3.0 <0.4.0, aad_oauth ^0.3.0 requires flutter_webview_plugin from hosted.
So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.
pub get failed (1; So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.)

Still stuck here, maybe I need to search further down the line...

try to use downgrade version for both aad_oauth ^0.2.2 and flutter_webview_plugin 0.3.11

@zitob9
Copy link

zitob9 commented May 17, 2022

@snoopdoggy322 thanks for your help, I have a problem with listing for onProgressChanged, or onUrlChanged doesn't work anymore after using your update

@hawkiq
Copy link

hawkiq commented Jun 4, 2022

tyr this

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

I can Confirm this solved my problem on flutter 3.

@RoarGronmo
Copy link

Nope... i got this error trying your solution @hawkiq

Because aad_oauth 0.3.0 depends on flutter_webview_plugin ^0.4.0 and no versions of aad_oauth match >0.3.0 <0.4.0, aad_oauth ^0.3.0 requires flutter_webview_plugin from hosted.
So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.
pub get failed (1; So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.)

The issue moved...

@hawkiq
Copy link

hawkiq commented Jun 4, 2022

Nope... i got this error trying your solution @hawkiq

Because aad_oauth 0.3.0 depends on flutter_webview_plugin ^0.4.0 and no versions of aad_oauth match >0.3.0 <0.4.0, aad_oauth ^0.3.0 requires flutter_webview_plugin from hosted.
So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.
pub get failed (1; So, because mwork depends on both aad_oauth ^0.3.0 and flutter_webview_plugin from git, version solving failed.)

The issue moved...

because you use this package aad_oauth which depends on flutter_webview_plugin older version so maybe your problem will stay until resolved by package maintainers, for me I've updated flutter_webview_plugin to use git source https://github.com/nuc134r/flutter_webview_plugin.git and my app can be built again.

jowilf added a commit to jowilf/kkiapay-flutter-sdk that referenced this issue Jun 18, 2022
jowilf added a commit to jowilf/kkiapay-flutter-sdk that referenced this issue Jun 18, 2022
@ChiPhanTlm
Copy link

ChiPhanTlm commented Jun 24, 2022

Careful to keep using the webview_plugin even with the nuc134r version in newer flutter project. It will break the Android version

@ca-ruthish
Copy link

I have not use flutter_webview_plugin project wise but it shows The plugin flutter_webview_plugin uses a deprecated version of the Android embedding.
can any suggest me how to resolve this???

@chiragnahata
Copy link

tyr this

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

Where to add it ? Please specify the file in which it needs to be added ?

@hawkiq
Copy link

hawkiq commented Jul 24, 2022

tyr this

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

Where to add it ? Please specify the file in which it needs to be added ?

In pubspec.yaml instead of writing version number try to write it as they mention

@alex27riva
Copy link

tyr this

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

Where to add it ? Please specify the file in which it needs to be added ?

In pubspec.yaml instead of writing version number try to write it as they mention

This fix doesn't work.

@shima93
Copy link

shima93 commented Dec 20, 2022

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

I added this in pubspec.yaml instead of writing version number, and the error not showing again,
but I cant run my app and I am gett this error:

This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.

@hu1won
Copy link

hu1won commented Jan 10, 2023

tyr this

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

Where to add it ? Please specify the file in which it needs to be added ?

In pubspec.yaml instead of writing version number try to write it as they mention

This fix doesn't work.

same issue

@hu1won
Copy link

hu1won commented Jan 10, 2023

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

I added this in pubspec.yaml instead of writing version number, and the error not showing again, but I cant run my app and I am gett this error:

This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.

try this

flutter build appbundle --no-sound-null-safety

@mkbsugita
Copy link

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.

@mkbsugita
Copy link

same here

@miyakooti
Copy link

same error now

@Linxford
Copy link

Same here

1 similar comment
@shashank-gupta-shipsy
Copy link

Same here

@hawkiq
Copy link

hawkiq commented Oct 18, 2023

I recommend use webview_flutter plugin instead of this abandoned project.

@leoblanski
Copy link

@hawkiq

I recommend use webview_flutter plugin instead of this abandoned project.

The problem is that this package is not working with GEO as expected...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests