Giter Club home page Giter Club logo

Comments (8)

Louna-akkad1 avatar Louna-akkad1 commented on August 24, 2024 1

In the process of working on the Flutter app project, I applied this plugin, and I confirmed that this plugin is currently using an android v1 embedding method that has been discontinued.

I forked the repository and completed the migration with an Android v2 embedding scheme, and I found my project no longer has relevant warnings. Of course, it works fine!

If you guys are having the same problem as me, check my repository that completed the migration.

How to apply it is very simple! You just need to write a few extra lines of code in pubspec.yaml.

dependencies:
    flutter_wbview_plugin:
        git:
            url: https://github.com/hardy716/flutter_webview_plugin.git

Please let me know if it doesn't apply or if an error occurs.

#962 (comment)
i have targetSdkVersion 33
and getting this error
error: cannot find symbol webView.getSettings().setAppCacheEnabled(appCacheEnabled);

from flutter_webview_plugin.

uday-tatamd avatar uday-tatamd commented on August 24, 2024

i am also facing the same issue , please help me to get out of this error

from flutter_webview_plugin.

Antwen97 avatar Antwen97 commented on August 24, 2024

You can use one of forked branches that fixed this problem. One of them is mine:
https://github.com/Antwen97/flutter_webview_plugin_V2

Like me, also others made same fix. Until a future merge, you can use forks typing (obviusly, indent code in the pubspec.yaml):
flutter_webview_plugin:
git:
url: GITHUB_FORK_URL

Just change "GITHUB_FORK_URL" with the url you choose that implements the android V2 migration.
In alternative, you can create your own fork and make the migration by yourself

from flutter_webview_plugin.

Laraveloper20 avatar Laraveloper20 commented on August 24, 2024

@Antwen97 I try used to fork but it problem persist
image

from flutter_webview_plugin.

Antwen97 avatar Antwen97 commented on August 24, 2024

@Antwen97 I try used to fork but it problem persist
image

Which compiled and target SDK version you are using?
I solved the problem just replacing the plugin version with the GitHub URL, clean and get

from flutter_webview_plugin.

Laraveloper20 avatar Laraveloper20 commented on August 24, 2024

build.gradle
minSdkVersion 20
targetSdkVersion 33
In pubspec.yaml I got this
flutter_webview_plugin:
git:
url: https://github.com/Antwen97/flutter_webview_plugin_V2
ref: master
I'm using
❯ flutter --version
Flutter 3.7.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision c07f788888 (3 weeks ago) • 2023-02-22 17:52:33 -0600
Engine • revision 0f359063c4
Tools • Dart 2.19.2 • DevTools 2.20.1

from flutter_webview_plugin.

hardy716 avatar hardy716 commented on August 24, 2024

In the process of working on the Flutter app project, I applied this plugin, and I confirmed that this plugin is currently using an android v1 embedding method that has been discontinued.

I forked the repository and completed the migration with an Android v2 embedding scheme, and I found my project no longer has relevant warnings. Of course, it works fine!

If you guys are having the same problem as me, check my repository that completed the migration.

How to apply it is very simple!
You just need to write a few extra lines of code in pubspec.yaml.

dependencies:
    flutter_wbview_plugin:
        git:
            url: https://github.com/hardy716/flutter_webview_plugin.git

Please let me know if it doesn't apply or if an error occurs.

#962 (comment)

from flutter_webview_plugin.

hardy716 avatar hardy716 commented on August 24, 2024

#962 (comment) i have targetSdkVersion 33 and getting this error error: cannot find symbol webView.getSettings().setAppCacheEnabled(appCacheEnabled);

Hi. I corrected the part that might be problematic in relation to what you said.
Check back and let me know if the problem persists!

from flutter_webview_plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.