fluttercommunity / flutter_webview_plugin

Community WebView Plugin - Allows Flutter to communicate with a native WebView.
https://pub.dev/packages/flutter_webview_plugin
Other
1.48k stars 933 forks source link

Webview dont load for Android with new flutter version #973

Open MilloshFey opened 3 months ago

MilloshFey commented 3 months ago

System info

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

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on macOS 13.6.1 22G313 darwin-x64, locale pt-BR)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[!] Xcode - develop for iOS and macOS (Xcode 15.0.1)
    ! CocoaPods 1.11.2 out of date (1.13.0 is recommended).
        CocoaPods is a package manager for iOS or macOS platform code.
        Without CocoaPods, plugins will not work on iOS or macOS.
        For more info, see https://flutter.dev/to/platform-plugins
      To update CocoaPods, see https://guides.cocoapods.org/using/getting-started.html#updating-cocoapods
[✓] Chrome - develop for the web
[✓] Android Studio (version 2020.3)
[✓] VS Code (version 1.92.1)
[✓] Connected device (3 available)
[✓] Network resources

Steps to Reproduce

I upgraded Flutter to the latest stable version (Flutter 3.24.0 • channel stable). Then created a new default flutter project and installed the plugin.

When I click to open the webview (any of them) I get the error:

E/flutter (15045): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method launch on channel flutter_webview_plugin) E/flutter (15045): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:332:7) E/flutter (15045): E/flutter (15045): #1 FlutterWebviewPlugin.launch (package:flutter_webview_plugin/src/base.dart:217:5) E/flutter (15045): E/flutter (15045):

It works fine with IOS. commands like 'flutter clean run' or deleting pubspec.lock didn't work.

Logs

manenga commented 2 months ago

Feel free to use my updated version using android v2 embeddings.