You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
webview_flutter_android fails compilation on Kotlin 1.8 #178756
Run flutter pub get on a project using webview_flutter and using Kotlin 1.8.x.
Attempt to build for android
Expected results
App builds
Actual results
Compiler error from Android:
e: file:///Users/jeff.ward/.pub-cache/hosted/pub.dev/webview_flutter_android-4.10.6/android/src/main/java/io/flutter/plugins/webviewflutter/AndroidWebkitLibrary.g.kt:222:71 Type argument is not within its bounds: should be subtype of 'Any'
Code sample
Code sample
None
Screenshots or Videos
No response
Logs
No response
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.38.1, on macOS 15.7.1 24G231 darwin-arm64, locale en-US)[!] Android toolchain - develop for Android devices (Android SDK version 36.0.0) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses[✓] Xcode - develop for iOS and macOS (Xcode 16.4)[✓] Chrome - develop for the web[✓] Connected device (4 available) ! Error: Browsing on the local area network for Jeff’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac. The device must be opted into Developer Mode to connect wirelessly. (code -27)[✓] Network resources
Sorry for a lack of much more information. We updated to 2.1.0 across all examples later that day. I only noticed this because it failed our CI on an older version of our library.
From Discord, this worked in webview_flutter_android 4.10.5 and failed in 4.10.6. That was just a Pigeon update from 25.3.2 to 26.1.0. The erroring code is from flutter/packages#10039; glancing at the code and the error it looks like this is probably related to having a generic <T> calling a <T : Any>, but I'm not familiar with the details of Kotlin templating.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
fuzzybinary commentedon Nov 18, 2025
Sorry for a lack of much more information. We updated to 2.1.0 across all examples later that day. I only noticed this because it failed our CI on an older version of our library.
cc: @stuartmorgan-g
stuartmorgan-g commentedon Nov 18, 2025
From Discord, this worked in
webview_flutter_android4.10.5 and failed in 4.10.6. That was just a Pigeon update from 25.3.2 to 26.1.0. The erroring code is from flutter/packages#10039; glancing at the code and the error it looks like this is probably related to having a generic<T>calling a<T : Any>, but I'm not familiar with the details of Kotlin templating./cc @bparrishMines
harshadok commentedon Nov 19, 2025
Same issue here
[pigeon] Fixes compilation error with unbounded type parameter for In…
[webview_flutter] Update Pigeon for Kotlin 1.8 compat (flutter#10486)
github-actions commentedon Dec 5, 2025
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.[pigeon] Fixes compilation error with unbounded type parameter for In…
[webview_flutter] Update Pigeon for Kotlin 1.8 compat (flutter#10486)