Comments (8)
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.
i am also facing the same issue , please help me to get out of this error
from flutter_webview_plugin.
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.
@Antwen97 I try used to fork but it problem persist
from flutter_webview_plugin.
@Antwen97 I try used to fork but it problem persist
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.
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.
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.
from flutter_webview_plugin.
#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)
- Download a static file by href, on post request or XMLHttpRequest
- No option to change font size of html content inside webview
- 使用flutter_webview_plugin dialog侧边划出控件均被webview遮住
- Is there anybody use FirebaseMessaging.onBackgroundMessage with javascript channel ?
- 在安卓13中报错,注释掉这个就可以了。 HOT 2
- Is it possible to load and display Three.js content in Flutter Web Application ?
- 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. HOT 3
- 2222
- deprecated version
- IOS goes to live broadcast instead of camera on video recording
- Download File feature in webview is long overdue now
- Build failed on Android Target SDK 33 HOT 1
- How to set user agent as Microsoft Edge ? HOT 1
- Not able to Import the package
- The iOS and Android execution returns are inconsistent
- Using WebviewScaffold to load URLs doesn't work in iOS
- Android webview error
- different roots error: :flutter_webview_plugin:compileDebugUnitTestSources
- deprecated version for flutter dart version 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_webview_plugin.