fluttercommunity / fluttercommunity/flutter_webview_plugin
APK Build getting failed
- 主要语言
- Java
- 星标
- 1.5k
- 派生
- 936
- PR 合并指标
- 30 天内没有已合并 PR
描述
## System info
Issue occurs on: Android
Plugin version: 0.3.11
## Steps to Reproduce
I'm using androidx in the project and when I try to build apk,,I'm not able to build apk due to some bug in flutter_webview plugin.
## Logs
`flutter analyze`
[ +2 ms] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\BrowserClient.java:80: warning:
[deprecation] shouldOverrideUrlLoading(WebView,String) in WebViewClient has been deprecated
[ +3 ms] public boolean shouldOverrideUrlLoading(WebView view, String url) {
[ ] ^
[ ] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\BrowserClient.java:103: warning:
[deprecation] onReceivedError(WebView,int,String,String) in WebViewClient has been deprecated
[ +28 ms] public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
[ +1 ms] ^
[ +3 ms] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\BrowserClient.java:104: warning:
[deprecation] onReceivedError(WebView,int,String,String) in WebViewClient has been deprecated
[ +2 ms] super.onReceivedError(view, errorCode, description, failingUrl);
[ ] ^
[ ] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\FlutterWebviewPlugin.java:133:
warning: [unchecked] unchecked cast
[ +1 ms] Map arguments = (Map) call.arguments;
[ +1 ms] ^
[ ] required: Map
[ +1 ms] found: Object
[ ] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\FlutterWebviewPlugin.java:134:
warning: [unchecked] unchecked conversion
[ +1 ms] List channelNames = new ArrayList();
[ +1 ms] ^
[ ] required: List
[ +1 ms] found: ArrayList
[ +20 ms] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\FlutterWebviewPlugin.java:136:
warning: [unchecked] unchecked cast
[ +12 ms] channelNames = (List) arguments.get(JS_CHANNEL_NAMES_FIELD);
[ +1 ms] ^
[ +1 ms] required: List
[ ] found: Object
[ +1 ms] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\FlutterWebviewPlugin.java:310:
warning: [deprecation] removeAllCookie() in CookieManager has been deprecated
[ +1 ms] CookieManager.getInstance().removeAllCookie();
[ +1 ms] ^
[ ] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\WebviewManager.java:193: warning:
[unchecked] unchecked conversion
[ +4 ms] mUploadMessage = uploadMsg;
[ +1 ms] ^
[ ] required: ValueCallback
[ ] found: ValueCallback
[ +1 ms] C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\flutter_webview_plugin-0.3.11\android\src\main\java\com\flutter_webview_plugin\WebviewManager.java:346: warning:
[deprecation] removeAllCookie() in CookieManager has been deprecated
[ +1 ms] CookieManager.getInstance().removeAllCookie();
[ ] ^
[ +1 ms] 9 warnings
贡献指南
这个仓库没有索引到贡献指南
调研方向
使用 flutter_webview_plugin 0.3.11 重现 Android APK 构建,并运行报告中的 flutter analyze 命令。从 BrowserClient.java、FlutterWebviewPlugin.java 和 WebviewManager.java 开始,日志显示其中存在弃用和 unchecked 警告。完成标准是找出实际的构建失败原因,并确认 Android APK 能够成功构建。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- build-system, mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100